[twitter] set 'retweet_id' for original retweets (#1481)

pull/1677/head
Mike Fährmann 3 years ago
parent 5323c1c73a
commit 414bdc95a3
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -484,8 +484,9 @@ class TwitterTweetExtractor(TwitterExtractor):
"options": (("retweets", "original"),), "options": (("retweets", "original"),),
"count": 2, "count": 2,
"keyword": { "keyword": {
"tweet_id": 1296296016002547713, "tweet_id" : 1296296016002547713,
"date" : "dt:2020-08-20 04:00:28", "retweet_id": 1296296016002547713,
"date" : "dt:2020-08-20 04:00:28",
}, },
}), }),
# all Tweets from a conversation (#1319) # all Tweets from a conversation (#1319)
@ -806,6 +807,7 @@ class TwitterAPI():
if original_retweets: if original_retweets:
if not retweet: if not retweet:
continue continue
retweet["retweeted_status_id_str"] = retweet["id_str"]
retweet["_retweet_id_str"] = tweet["id_str"] retweet["_retweet_id_str"] = tweet["id_str"]
tweet = retweet tweet = retweet
elif retweet: elif retweet:

Loading…
Cancel
Save