diff options
| author | 2022-02-10 22:50:56 -0500 | |
|---|---|---|
| committer | 2022-02-10 22:50:56 -0500 | |
| commit | 99bc014c924c755f10a4a930b1a83efabd84fde1 (patch) | |
| tree | 596bbab18416b66adf87011a0a6e439468f68778 /gallery_dl/extractor/sexcom.py | |
| parent | 8a812de1450d5d53fc1cd9a59f6c3f08452fc5b1 (diff) | |
New upstream version 1.20.4.upstream/1.20.4
Diffstat (limited to 'gallery_dl/extractor/sexcom.py')
| -rw-r--r-- | gallery_dl/extractor/sexcom.py | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/gallery_dl/extractor/sexcom.py b/gallery_dl/extractor/sexcom.py index 9f4bfc3..edf35da 100644 --- a/gallery_dl/extractor/sexcom.py +++ b/gallery_dl/extractor/sexcom.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2019-2020 Mike Fährmann +# Copyright 2019-2022 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -167,6 +167,27 @@ class SexcomRelatedPinExtractor(SexcomPinExtractor): return self._pagination(url) +class SexcomPinsExtractor(SexcomExtractor): + """Extractor for a user's pins on www.sex.com""" + subcategory = "pins" + directory_fmt = ("{category}", "{user}") + pattern = r"(?:https?://)?(?:www\.)?sex\.com/user/([^/?#]+)/pins/" + test = ("https://www.sex.com/user/sirjuan79/pins/", { + "count": ">= 15", + }) + + def __init__(self, match): + SexcomExtractor.__init__(self, match) + self.user = match.group(1) + + def metadata(self): + return {"user": text.unquote(self.user)} + + def pins(self): + url = "{}/user/{}/pins/".format(self.root, self.user) + return self._pagination(url) + + class SexcomBoardExtractor(SexcomExtractor): """Extractor for pins from a board on www.sex.com""" subcategory = "board" |
