[twitter] extract 'source' metadata (#4459)

pull/4489/head
Mike Fährmann 1 year ago
parent 14af15bd18
commit 06aaedded5
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -277,6 +277,8 @@ class TwitterExtractor(Extractor):
else:
note = None
source = tweet["source"]
if "legacy" in tweet:
tweet = tweet["legacy"]
@ -303,6 +305,7 @@ class TwitterExtractor(Extractor):
"author" : author,
"user" : self._user or author,
"lang" : tweet["lang"],
"source" : text.extr(source, ">", "<"),
"favorite_count": tget("favorite_count"),
"quote_count" : tget("quote_count"),
"reply_count" : tget("reply_count"),

Loading…
Cancel
Save