diff --git a/docs/supportedsites.md b/docs/supportedsites.md index 5f46a715..ec53c78f 100644 --- a/docs/supportedsites.md +++ b/docs/supportedsites.md @@ -673,12 +673,6 @@ Consider all sites to be NSFW unless otherwise known.
\n", "\n
\n").strip()), - "files" : self._find_files(page), - } - - def login(self): - username, password = self._get_auth_info() - if username: - self._update_cookies(self._login_impl(username, password)) - - @cache(maxage=28*24*3600, keyarg=1) - def _login_impl(self, username, password): - self.log.info("Logging in as %s", username) - - url = self.root + "/account/login" - data = {"username": username, "password": password} - - response = self.request(url, method="POST", data=data) - if response.url.endswith("/account/login") and \ - "Username or password is incorrect" in response.text: - raise exception.AuthenticationError() - - return {c.name: c.value for c in response.history[0].cookies} - - -class SeisopartyUserExtractor(SeisopartyExtractor): - """Extractor for all posts from a seiso.party user listing""" - subcategory = "user" - pattern = r"(?:https?://)?seiso\.party/artists/([^/?#]+)/([^/?#]+)" - test = ( - ("https://seiso.party/artists/fanbox/21", { - "pattern": r"https://cdn\.seiso\.party/files/fanbox/\d+/", - "count": ">=15", - "keyword": { - "content": str, - "date": "type:datetime", - "id": r"re:\d+", - "num": int, - "service": "fanbox", - "title": str, - "user": "21", - "username": "雨", - }, - }), - ) - - def __init__(self, match): - SeisopartyExtractor.__init__(self, match) - self.service, self.user_id = match.groups() - - def posts(self): - url = "{}/artists/{}/{}".format(self.root, self.service, self.user_id) - page = self.request(url).text - self.user_name, pos = text.extract(page, '', '<') - - url = self.root + text.extract( - page, 'href="', '"', page.index('id="content"', pos))[0] - response = self.request(url) - headers = {"Referer": url} - - while True: - yield self._parse_post(response.text, url.rpartition("/")[2]) - response = self.request(url + "/next", headers=headers) - if url == response.url: - return - url = headers["Referer"] = response.url - - -class SeisopartyPostExtractor(SeisopartyExtractor): - """Extractor for a single seiso.party post""" - subcategory = "post" - pattern = r"(?:https?://)?seiso\.party/post/([^/?#]+)/([^/?#]+)/([^/?#]+)" - test = ( - ("https://seiso.party/post/fanbox/21/371", { - "url": "75f13b92de0ce399b6163c3de18f1f36011c2366", - "count": 2, - "keyword": { - "content": "この前描いためぐるちゃんのPSDファイルです。