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

This commit is contained in:
Mike Fährmann
2024-07-10 15:55:39 +02:00
parent 21831eba1e
commit c83c812a1e
6 changed files with 22 additions and 15 deletions

View File

@@ -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

View File

@@ -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)