[instagram] update pattern for user profile URLs
Allow for query parameters and fragments, for example https://www.instagram.com/instagram/?hl=en
This commit is contained in:
@@ -439,7 +439,7 @@ class InstagramUserExtractor(InstagramExtractor):
|
|||||||
subcategory = "user"
|
subcategory = "user"
|
||||||
pattern = (r"(?:https?://)?(?:www\.)?instagram\.com"
|
pattern = (r"(?:https?://)?(?:www\.)?instagram\.com"
|
||||||
r"/(?!p/|explore/|directory/|accounts/|stories/|tv/)"
|
r"/(?!p/|explore/|directory/|accounts/|stories/|tv/)"
|
||||||
r"([^/?&#]+)/?$")
|
r"([^/?&#]+)/?(?:$|[?#])")
|
||||||
test = (
|
test = (
|
||||||
("https://www.instagram.com/instagram/", {
|
("https://www.instagram.com/instagram/", {
|
||||||
"range": "1-16",
|
"range": "1-16",
|
||||||
@@ -451,6 +451,7 @@ class InstagramUserExtractor(InstagramExtractor):
|
|||||||
"range": "1-2",
|
"range": "1-2",
|
||||||
"count": 2,
|
"count": 2,
|
||||||
}),
|
}),
|
||||||
|
("https://www.instagram.com/instagram/?hl=en"),
|
||||||
)
|
)
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
|
|||||||
Reference in New Issue
Block a user