From 42794fd0fa59f28b59154c1e45e6752b87ac9291 Mon Sep 17 00:00:00 2001 From: Sreenivas V Rao Date: Mon, 31 Dec 2018 22:23:19 +0530 Subject: [PATCH] Change subreddit. --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 079a5c7..9719ecf 100644 --- a/bot.py +++ b/bot.py @@ -22,7 +22,7 @@ def get_bot(): r = get_bot() -subreddit = r.subreddit('pythonforengineers') +subreddit = r.subreddit('machinelearning') # alreadydone = set() @@ -54,11 +54,12 @@ def comment(cache): all_posts = subreddit.new(limit=100) for post in all_posts: if 'arxiv.org' in post.url: + print post.permalink if cache.get(post.id) and cache.get(post.id) is 'T': print "Parsed this post already: %s"%(post.permalink) continue for comment in post.comments: - if str(comment.author) == 'arxiv_abstract_bot': + if str(comment.author) == 'arXiv_abstract_bot': break else: landing_url = post.url