[instagram] add 'info' as a possible 'include' value
This commit is contained in:
@@ -2443,6 +2443,7 @@ Description
|
||||
``"tagged"``,
|
||||
``"stories"``,
|
||||
``"highlights"``,
|
||||
``"info"``,
|
||||
``"avatar"``.
|
||||
|
||||
It is possible to use ``"all"`` instead of listing all values separately.
|
||||
|
||||
@@ -434,6 +434,7 @@ class InstagramUserExtractor(InstagramExtractor):
|
||||
base = "{}/{}/".format(self.root, self.item)
|
||||
stories = "{}/stories/{}/".format(self.root, self.item)
|
||||
return self._dispatch_extractors((
|
||||
(InstagramInfoExtractor , base + "info/"),
|
||||
(InstagramAvatarExtractor , base + "avatar/"),
|
||||
(InstagramStoriesExtractor , stories),
|
||||
(InstagramHighlightsExtractor, base + "highlights/"),
|
||||
|
||||
@@ -12,6 +12,17 @@ __tests__ = (
|
||||
"#url" : "https://www.instagram.com/instagram/",
|
||||
"#category": ("", "instagram", "user"),
|
||||
"#class" : instagram.InstagramUserExtractor,
|
||||
"#auth" : False,
|
||||
"#options" : {"include": "all"},
|
||||
"#urls": [
|
||||
"https://www.instagram.com/instagram/info/",
|
||||
"https://www.instagram.com/instagram/avatar/",
|
||||
"https://www.instagram.com/stories/instagram/",
|
||||
"https://www.instagram.com/instagram/highlights/",
|
||||
"https://www.instagram.com/instagram/posts/",
|
||||
"https://www.instagram.com/instagram/reels/",
|
||||
"https://www.instagram.com/instagram/tagged/",
|
||||
],
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user