[twitter] add 'protected' metadata field (#5327)

for 'author' and 'user'
This commit is contained in:
Mike Fährmann
2024-03-13 14:46:03 +01:00
parent dde822e69a
commit 108abab537
2 changed files with 54 additions and 0 deletions

View File

@@ -380,6 +380,7 @@ class TwitterExtractor(Extractor):
"date" : text.parse_datetime(
uget("created_at"), "%a %b %d %H:%M:%S %z %Y"),
"verified" : uget("verified", False),
"protected" : uget("protected", False),
"profile_banner" : uget("profile_banner_url", ""),
"profile_image" : uget(
"profile_image_url_https", "").replace("_normal.", "."),