mirror of
https://github.com/bellingcat/cisticola.git
synced 2026-06-10 20:38:33 +03:00
Fix bug in handling retweets without media
This commit is contained in:
@@ -37,10 +37,12 @@ class TwitterScraper(Scraper):
|
||||
if tweet.media:
|
||||
media_list += tweet.media
|
||||
|
||||
if tweet.retweetedTweet and tweet.retweetedTweet.media:
|
||||
print(tweet.json())
|
||||
|
||||
if tweet.retweetedTweet and hasattr(tweet.retweetedTweet, 'media') and tweet.retweetedTweet.media:
|
||||
media_list += tweet.retweetedTweet.media
|
||||
|
||||
if tweet.quotedTweet and tweet.quotedTweet.media:
|
||||
if tweet.quotedTweet and hasattr(tweet.quotedTweet, 'media') and tweet.quotedTweet.media:
|
||||
media_list += tweet.quotedTweet.media
|
||||
|
||||
for media in media_list:
|
||||
|
||||
Reference in New Issue
Block a user