remove '&' from URL patterns
'/?&#' -> '/?#' and '?&#' -> '?#' According to https://www.ietf.org/rfc/rfc3986.txt, URLs are "organized hierarchically" by using "the slash ("/"), question mark ("?"), and number sign ("#") characters to delimit components"
This commit is contained in:
@@ -177,7 +177,7 @@ class FuraffinityExtractor(Extractor):
|
||||
class FuraffinityGalleryExtractor(FuraffinityExtractor):
|
||||
"""Extractor for a furaffinity user's gallery"""
|
||||
subcategory = "gallery"
|
||||
pattern = BASE_PATTERN + r"/gallery/([^/?&#]+)"
|
||||
pattern = BASE_PATTERN + r"/gallery/([^/?#]+)"
|
||||
test = ("https://www.furaffinity.net/gallery/mirlinthloth/", {
|
||||
"pattern": r"https://d\d?.facdn.net/art/mirlinthloth/\d+/\d+.\w+\.\w+",
|
||||
"range": "45-50",
|
||||
@@ -189,7 +189,7 @@ class FuraffinityScrapsExtractor(FuraffinityExtractor):
|
||||
"""Extractor for a furaffinity user's scraps"""
|
||||
subcategory = "scraps"
|
||||
directory_fmt = ("{category}", "{user!l}", "Scraps")
|
||||
pattern = BASE_PATTERN + r"/scraps/([^/?&#]+)"
|
||||
pattern = BASE_PATTERN + r"/scraps/([^/?#]+)"
|
||||
test = ("https://www.furaffinity.net/scraps/mirlinthloth/", {
|
||||
"pattern": r"https://d\d?.facdn.net/art/[^/]+(/stories)?/\d+/\d+.\w+.",
|
||||
"count": ">= 3",
|
||||
@@ -200,7 +200,7 @@ class FuraffinityFavoriteExtractor(FuraffinityExtractor):
|
||||
"""Extractor for a furaffinity user's favorites"""
|
||||
subcategory = "favorite"
|
||||
directory_fmt = ("{category}", "{user!l}", "Favorites")
|
||||
pattern = BASE_PATTERN + r"/favorites/([^/?&#]+)"
|
||||
pattern = BASE_PATTERN + r"/favorites/([^/?#]+)"
|
||||
test = ("https://www.furaffinity.net/favorites/mirlinthloth/", {
|
||||
"pattern": r"https://d\d?.facdn.net/art/[^/]+/\d+/\d+.\w+\.\w+",
|
||||
"range": "45-50",
|
||||
@@ -278,7 +278,7 @@ class FuraffinityUserExtractor(FuraffinityExtractor):
|
||||
"""Extractor for furaffinity user profiles"""
|
||||
subcategory = "user"
|
||||
cookiedomain = None
|
||||
pattern = BASE_PATTERN + r"/user/([^/?&#]+)"
|
||||
pattern = BASE_PATTERN + r"/user/([^/?#]+)"
|
||||
test = (
|
||||
("https://www.furaffinity.net/user/mirlinthloth/", {
|
||||
"pattern": r"/gallery/mirlinthloth/$",
|
||||
@@ -302,7 +302,7 @@ class FuraffinityUserExtractor(FuraffinityExtractor):
|
||||
class FuraffinityFollowingExtractor(FuraffinityExtractor):
|
||||
"""Extractor for a furaffinity user's watched users"""
|
||||
subcategory = "following"
|
||||
pattern = BASE_PATTERN + "/watchlist/by/([^/?&#]+)"
|
||||
pattern = BASE_PATTERN + "/watchlist/by/([^/?#]+)"
|
||||
test = ("https://www.furaffinity.net/watchlist/by/mirlinthloth/", {
|
||||
"pattern": FuraffinityUserExtractor.pattern,
|
||||
"range": "176-225",
|
||||
|
||||
Reference in New Issue
Block a user