Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Epicfisher authored Apr 22, 2018
1 parent c216bb7 commit 0df8ac9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
# postedArticles = list(filter(None, postedArticles))

#postedArticles = reddit.front.new()
postedArticles = reddit.redditor('TeignmouthNews').submissions.new()
postedArticlesGenerated = reddit.redditor('TeignmouthNews').submissions.new()
postedArticles = list(postedArticlesGenerated)

#for post in postedArticles:
# print(post.url.replace("https://", "https://"))
Expand All @@ -45,9 +46,6 @@
for articleLink in postedArticles:
i = i + 1
print(str(i) + " Elements in postedArticles")
for articleLink in postedArticles:
i = i + 1
print(str(i) + " Elements in postedArticles, Second Try")
for articleLink in postedArticles:
#print("Checking '" + item['link'].replace("https://", "https://") + "' and '" + articleLink.url.replace("https://", "https://") + "'")
#print("Checking '" + articleLink.url + "'")
Expand Down

0 comments on commit 0df8ac9

Please sign in to comment.