From 4532a29401740c4cb2aa17e8ed0b9c2f5e7283db Mon Sep 17 00:00:00 2001 From: Sreenivas V Rao Date: Thu, 27 Dec 2018 09:51:08 +0530 Subject: [PATCH] Minor change. --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index b139bd2..079a5c7 100644 --- a/bot.py +++ b/bot.py @@ -55,7 +55,7 @@ def comment(cache): for post in all_posts: if 'arxiv.org' in post.url: if cache.get(post.id) and cache.get(post.id) is 'T': - print "Parsed this post already: %s"%(post.url) + print "Parsed this post already: %s"%(post.permalink) continue for comment in post.comments: if str(comment.author) == 'arxiv_abstract_bot': @@ -69,7 +69,7 @@ def comment(cache): response = scrape_arxiv(landing_url) post.reply(response) cache.set(post.id, 'T') - print "Parsed post: %s"%(post.url) + print "Parsed post: %s"%(post.permalink) print(landing_url, response) time.sleep(10) except Exception as error: