diff --git a/crawler.py b/crawler.py index e51dbf7..645074a 100644 --- a/crawler.py +++ b/crawler.py @@ -91,7 +91,7 @@ def crawler(): # save the article info to redis if save_to_redis(article): - print(article) + logger.info(article) def toot(): # get all the keys in redis @@ -117,6 +117,7 @@ def toot(): url=article['url']) mastodon_client.status_post(toot_content, media_ids=[media['id']]) + logger.info('Toot %s' % article['title']) # add the article['id'] to the set redis_db.sadd('send-chh-article-id', article['article_id'])