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