[instagram] remove 'channel' extractor

This commit is contained in:
Mike Fährmann
2022-10-15 21:13:58 +02:00
parent 51e3b380ac
commit 0714274f1f
3 changed files with 2 additions and 18 deletions

View File

@@ -1517,8 +1517,7 @@ Description
when processing a user profile.
Possible values are
``"posts"``, ``"reels"``, ``"channel"``, ``"tagged"``,
``"stories"``, ``"highlights"``.
``"posts"``, ``"reels"``, ``"tagged"``, ``"stories"``, ``"highlights"``.
You can use ``"all"`` instead of listing all values separately.

View File

@@ -400,7 +400,7 @@ Consider all sites to be NSFW unless otherwise known.
<tr>
<td>Instagram</td>
<td>https://www.instagram.com/</td>
<td>Channels, Collections, Highlights, Posts, Reels, Saved Posts, Stories, Tag Searches, Tagged Posts, User Profiles</td>
<td>Collections, Highlights, Posts, Reels, Saved Posts, Stories, Tag Searches, Tagged Posts, User Profiles</td>
<td>Supported</td>
</tr>
<tr>

View File

@@ -366,7 +366,6 @@ class InstagramUserExtractor(InstagramExtractor):
(InstagramPostsExtractor , base + "posts/"),
(InstagramReelsExtractor , base + "reels/"),
(InstagramTaggedExtractor , base + "tagged/"),
(InstagramChannelExtractor , base + "channel/"),
), ("posts",))
@@ -430,20 +429,6 @@ class InstagramTaggedExtractor(InstagramExtractor):
return self.api.user_tagged(self.user_id)
class InstagramChannelExtractor(InstagramExtractor):
"""Extractor for an Instagram user's channel posts"""
subcategory = "channel"
pattern = USER_PATTERN + r"/channel"
test = ("https://www.instagram.com/instagram/channel/", {
"range": "1-16",
"count": ">= 16",
})
def posts(self):
uid = self.api.user_id(self.item)
return self.api.user_clips(uid)
class InstagramSavedExtractor(InstagramExtractor):
"""Extractor for an Instagram user's saved media"""
subcategory = "saved"