mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-02-01 03:51:42 +01:00
[twitter] add 'info' as a possible 'include' value (#6114)
This commit is contained in:
parent
ef8b1bc56e
commit
bd932b6860
@ -4093,6 +4093,7 @@ Description
|
||||
when processing a user profile.
|
||||
|
||||
Possible values are
|
||||
``"info"``,
|
||||
``"avatar"``,
|
||||
``"background"``,
|
||||
``"timeline"``,
|
||||
|
@ -568,6 +568,7 @@ class TwitterUserExtractor(TwitterExtractor):
|
||||
def items(self):
|
||||
base = "{}/{}/".format(self.root, self.user)
|
||||
return self._dispatch_extractors((
|
||||
(TwitterInfoExtractor , base + "info"),
|
||||
(TwitterAvatarExtractor , base + "photo"),
|
||||
(TwitterBackgroundExtractor, base + "header_photo"),
|
||||
(TwitterTimelineExtractor , base + "timeline"),
|
||||
|
@ -14,8 +14,16 @@ __tests__ = (
|
||||
"#category": ("", "twitter", "user"),
|
||||
"#class" : twitter.TwitterUserExtractor,
|
||||
"#options" : {"include": "all"},
|
||||
"#pattern" : r"https://x\.com/supernaturepics/(photo|header_photo|timeline|tweets|media|with_replies|likes)$",
|
||||
"#count" : 7,
|
||||
"#urls" : [
|
||||
"https://x.com/supernaturepics/info",
|
||||
"https://x.com/supernaturepics/photo",
|
||||
"https://x.com/supernaturepics/header_photo",
|
||||
"https://x.com/supernaturepics/timeline",
|
||||
"https://x.com/supernaturepics/tweets",
|
||||
"https://x.com/supernaturepics/media",
|
||||
"https://x.com/supernaturepics/with_replies",
|
||||
"https://x.com/supernaturepics/likes",
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user