[instagram][twitter] rename 'profile' to 'info' (#5262, #3623)

pull/5870/head
Mike Fährmann 2 months ago
parent 21831eba1e
commit c83c812a1e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -430,7 +430,7 @@ Consider all listed sites to potentially be NSFW.
<tr>
<td>Instagram</td>
<td>https://www.instagram.com/</td>
<td>Avatars, Collections, Followed Users, Guides, Highlights, Posts, User Profile Data, Reels, Saved Posts, Stories, Tag Searches, Tagged Posts, User Profiles</td>
<td>Avatars, Collections, Followed Users, Guides, Highlights, User Profile Information, Posts, Reels, Saved Posts, Stories, Tag Searches, Tagged Posts, User Profiles</td>
<td><a href="https://github.com/mikf/gallery-dl#cookies">Cookies</a></td>
</tr>
<tr>
@ -898,7 +898,7 @@ Consider all listed sites to potentially be NSFW.
<tr>
<td>Twitter</td>
<td>https://x.com/</td>
<td>Avatars, Backgrounds, Bookmarks, Communities, Events, Followed Users, Hashtags, individual Images, Likes, Lists, List Members, Media Timelines, User Profile Data, Quotes, Search Results, Timelines, Tweets, User Profiles</td>
<td>Avatars, Backgrounds, Bookmarks, Communities, Events, Followed Users, Hashtags, individual Images, User Profile Information, Likes, Lists, List Members, Media Timelines, Quotes, Search Results, Timelines, Tweets, User Profiles</td>
<td>Supported</td>
</tr>
<tr>

@ -596,11 +596,11 @@ class InstagramTagExtractor(InstagramExtractor):
return self.api.tags_media(self.item)
class InstagramProfileExtractor(InstagramExtractor):
class InstagramInfoExtractor(InstagramExtractor):
"""Extractor for an Instagram user's profile data"""
subcategory = "profile"
pattern = USER_PATTERN + r"/profile"
example = "https://www.instagram.com/USER/profile/"
subcategory = "info"
pattern = USER_PATTERN + r"/info"
example = "https://www.instagram.com/USER/info/"
def items(self):
screen_name = self.item

@ -924,11 +924,11 @@ class TwitterQuotesExtractor(TwitterExtractor):
yield Message.Queue, url, data
class TwitterProfileExtractor(TwitterExtractor):
"""Extractor a user's profile data"""
subcategory = "profile"
pattern = BASE_PATTERN + r"/(?!search)([^/?#]+)/profile"
example = "https://x.com/USER/profile"
class TwitterInfoExtractor(TwitterExtractor):
"""Extractor for a user's profile data"""
subcategory = "info"
pattern = BASE_PATTERN + r"/(?!search)([^/?#]+)/info"
example = "https://x.com/USER/info"
def items(self):
api = TwitterAPI(self)

@ -161,12 +161,12 @@ SUBCATEGORY_MAP = {
"home" : "Home Feed",
"image" : "individual Images",
"index" : "Site Index",
"info" : "User Profile Information",
"issue" : "Comic Issues",
"manga" : "Manga",
"media" : "Media Files",
"note" : "Images from Notes",
"popular": "Popular Images",
"profile": "User Profile Data",
"recent" : "Recent Images",
"search" : "Search Results",
"status" : "Images from Statuses",

@ -133,9 +133,10 @@ __tests__ = (
},
{
"#url" : "https://www.instagram.com/instagram/profile",
"#category": ("", "instagram", "profile"),
"#class" : instagram.InstagramProfileExtractor,
"#url" : "https://www.instagram.com/instagram/info",
"#category": ("", "instagram", "info"),
"#class" : instagram.InstagramInfoExtractor,
"#auth" : False,
},
{

@ -637,6 +637,12 @@ The Washington Post writes, "Three weeks after the toxic train derailment in Ohi
"#urls" : "https://x.com/search?q=quoted_tweet_id:1263832915173048321",
},
{
"#url" : "https://twitter.com/supernaturepics/info",
"#category": ("", "twitter", "info"),
"#class" : twitter.TwitterInfoExtractor,
},
{
"#url" : "https://twitter.com/supernaturepics/photo",
"#category": ("", "twitter", "avatar"),

Loading…
Cancel
Save