[twitter] add debug messages for all skipped Tweets (#867)
This commit is contained in:
@@ -42,9 +42,14 @@ class TwitterExtractor(Extractor):
|
|||||||
|
|
||||||
for tweet in self.tweets():
|
for tweet in self.tweets():
|
||||||
|
|
||||||
if (not self.retweets and "retweeted_status_id_str" in tweet or
|
if not self.retweets and "retweeted_status_id_str" in tweet:
|
||||||
not self.replies and "in_reply_to_user_id_str" in tweet or
|
self.log.debug("Skipping %s (retweet)", tweet["id_str"])
|
||||||
not self.quoted and "quoted" in tweet):
|
continue
|
||||||
|
if not self.replies and "in_reply_to_user_id_str" in tweet:
|
||||||
|
self.log.debug("Skipping %s (reply)", tweet["id_str"])
|
||||||
|
continue
|
||||||
|
if not self.quoted and "quoted" in tweet:
|
||||||
|
self.log.debug("Skipping %s (quoted tweet)", tweet["id_str"])
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self.twitpic:
|
if self.twitpic:
|
||||||
@@ -525,8 +530,8 @@ class TwitterAPI():
|
|||||||
entry["content"]["item"]["content"]["tweet"]["id"]]
|
entry["content"]["item"]["content"]["tweet"]["id"]]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.extractor.log.debug(
|
self.extractor.log.debug(
|
||||||
"Skipping unavailable Tweet %s",
|
"Skipping %s (deleted)",
|
||||||
entry["entryId"][6:])
|
entry["entryId"][len(entry_tweet):])
|
||||||
continue
|
continue
|
||||||
tweet["user"] = users[tweet["user_id_str"]]
|
tweet["user"] = users[tweet["user_id_str"]]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user