From 37b663bcfe05cc5557390e8eaa850fcc9f22b7f0 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Mon, 16 Mar 2015 21:01:04 +0000 Subject: [PATCH] twitter: log list of tweets received, for debugging ease --- tipbot/modules/twitter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tipbot/modules/twitter.py b/tipbot/modules/twitter.py index 72e898c..c18b357 100644 --- a/tipbot/modules/twitter.py +++ b/tipbot/modules/twitter.py @@ -233,6 +233,7 @@ class TwitterNetwork(Network): # doesn't seem to obey since_id #results = self.twitter.mentions_timeline(since_id=self.last_seen_tweet_id) results = [status for status in tweepy.Cursor(self.twitter.mentions_timeline,q=self.keyword,since_id=self.last_seen_tweet_id).items(100)] + log_log('tweet list since %d: %s' % (long(self.last_seen_tweet_id),str(results))) for result in results: self._parse_tweet(result) if long(result.id) > self.last_seen_tweet_id: