mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-21 18:22:30 +01:00
parent
0e18fa395d
commit
7916c8bf77
@ -31,7 +31,7 @@ class DeviantartExtractor(Extractor):
|
||||
root = "https://www.deviantart.com"
|
||||
directory_fmt = ("{category}", "{username}")
|
||||
filename_fmt = "{category}_{index}_{title}.{extension}"
|
||||
cookies_domain = None
|
||||
cookies_domain = ".deviantart.com"
|
||||
cookies_names = ("auth", "auth_secure", "userinfo")
|
||||
_last_request = 0
|
||||
|
||||
@ -399,7 +399,7 @@ class DeviantartExtractor(Extractor):
|
||||
|
||||
def _textcontent_to_html(self, deviation, content):
|
||||
html = content["html"]
|
||||
markup = html["markup"]
|
||||
markup = html.get("markup")
|
||||
|
||||
if not markup or markup[0] != "{":
|
||||
return markup
|
||||
@ -1144,7 +1144,6 @@ class DeviantartScrapsExtractor(DeviantartExtractor):
|
||||
subcategory = "scraps"
|
||||
directory_fmt = ("{category}", "{username}", "Scraps")
|
||||
archive_fmt = "s_{_username}_{index}.{extension}"
|
||||
cookies_domain = ".deviantart.com"
|
||||
pattern = BASE_PATTERN + r"/gallery/(?:\?catpath=)?scraps\b"
|
||||
example = "https://www.deviantart.com/USER/gallery/scraps"
|
||||
|
||||
@ -1161,7 +1160,6 @@ class DeviantartSearchExtractor(DeviantartExtractor):
|
||||
subcategory = "search"
|
||||
directory_fmt = ("{category}", "Search", "{search_tags}")
|
||||
archive_fmt = "Q_{search_tags}_{index}.{extension}"
|
||||
cookies_domain = ".deviantart.com"
|
||||
pattern = (r"(?:https?://)?www\.deviantart\.com"
|
||||
r"/search(?:/deviations)?/?\?([^#]+)")
|
||||
example = "https://www.deviantart.com/search?q=QUERY"
|
||||
@ -1213,7 +1211,6 @@ class DeviantartGallerySearchExtractor(DeviantartExtractor):
|
||||
"""Extractor for deviantart gallery searches"""
|
||||
subcategory = "gallery-search"
|
||||
archive_fmt = "g_{_username}_{index}.{extension}"
|
||||
cookies_domain = ".deviantart.com"
|
||||
pattern = BASE_PATTERN + r"/gallery/?\?(q=[^#]+)"
|
||||
example = "https://www.deviantart.com/USER/gallery?q=QUERY"
|
||||
|
||||
|
@ -20,7 +20,6 @@ class FlickrExtractor(Extractor):
|
||||
filename_fmt = "{category}_{id}.{extension}"
|
||||
directory_fmt = ("{category}", "{user[username]}")
|
||||
archive_fmt = "{id}"
|
||||
cookies_domain = None
|
||||
request_interval = (1.0, 2.0)
|
||||
request_interval_min = 0.5
|
||||
|
||||
|
@ -19,7 +19,6 @@ class MastodonExtractor(BaseExtractor):
|
||||
directory_fmt = ("mastodon", "{instance}", "{account[username]}")
|
||||
filename_fmt = "{category}_{id}_{media[id]}.{extension}"
|
||||
archive_fmt = "{media[id]}"
|
||||
cookies_domain = None
|
||||
|
||||
def __init__(self, match):
|
||||
BaseExtractor.__init__(self, match)
|
||||
|
@ -26,7 +26,7 @@ class PixivExtractor(Extractor):
|
||||
directory_fmt = ("{category}", "{user[id]} {user[account]}")
|
||||
filename_fmt = "{id}_p{num}.{extension}"
|
||||
archive_fmt = "{id}{suffix}.{extension}"
|
||||
cookies_domain = None
|
||||
cookies_domain = ".pixiv.net"
|
||||
sanity_url = "https://s.pximg.net/common/images/limit_sanity_level_360.png"
|
||||
mypixiv_url = "https://s.pximg.net/common/images/limit_mypixiv_360.png"
|
||||
|
||||
@ -739,7 +739,6 @@ class PixivPixivisionExtractor(PixivExtractor):
|
||||
directory_fmt = ("{category}", "pixivision",
|
||||
"{pixivision_id} {pixivision_title}")
|
||||
archive_fmt = "V{pixivision_id}_{id}{suffix}.{extension}"
|
||||
cookies_domain = ".pixiv.net"
|
||||
pattern = r"(?:https?://)?(?:www\.)?pixivision\.net/(?:en/)?a/(\d+)"
|
||||
example = "https://www.pixivision.net/en/a/12345"
|
||||
|
||||
|
@ -21,7 +21,6 @@ class SmugmugExtractor(Extractor):
|
||||
category = "smugmug"
|
||||
filename_fmt = ("{category}_{User[NickName]:?/_/}"
|
||||
"{Image[UploadKey]}_{Image[ImageKey]}.{extension}")
|
||||
cookies_domain = None
|
||||
empty_user = {
|
||||
"Uri": "",
|
||||
"ResponseLevel": "Public",
|
||||
|
@ -31,7 +31,6 @@ class TumblrExtractor(Extractor):
|
||||
directory_fmt = ("{category}", "{blog_name}")
|
||||
filename_fmt = "{category}_{blog_name}_{id}_{num:>02}.{extension}"
|
||||
archive_fmt = "{id}_{num}"
|
||||
cookies_domain = None
|
||||
|
||||
def __init__(self, match):
|
||||
Extractor.__init__(self, match)
|
||||
|
@ -251,6 +251,9 @@ class WeiboUserExtractor(WeiboExtractor):
|
||||
pattern = USER_PATTERN + r"(?:$|#)"
|
||||
example = "https://weibo.com/USER"
|
||||
|
||||
def initialize(self):
|
||||
pass
|
||||
|
||||
def items(self):
|
||||
base = "{}/u/{}?tabtype=".format(self.root, self._user_id())
|
||||
return self._dispatch_extractors((
|
||||
|
Loading…
Reference in New Issue
Block a user