aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/imagehosts.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-12-04 23:25:11 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2022-12-04 23:25:11 -0500
commitb79007bb57b43b0bb5eff4aa8e5e77a782896e10 (patch)
tree42a4b6168cc46f818465a3c25788253b2aa1b1a5 /gallery_dl/extractor/imagehosts.py
parent9f3eb7898190a9f1e131a523f37e2e53cc6c6d68 (diff)
parent3338dfce719c999467ffe08fd45663be8190057a (diff)
Update upstream source from tag 'upstream/1.24.1'
Update to upstream version '1.24.1' with Debian dir 327715c78291415f1ede99ba69c817d2264b3693
Diffstat (limited to 'gallery_dl/extractor/imagehosts.py')
-rw-r--r--gallery_dl/extractor/imagehosts.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/gallery_dl/extractor/imagehosts.py b/gallery_dl/extractor/imagehosts.py
index 622509f..6fcfc55 100644
--- a/gallery_dl/extractor/imagehosts.py
+++ b/gallery_dl/extractor/imagehosts.py
@@ -242,6 +242,25 @@ class PixhostImageExtractor(ImagehostImageExtractor):
return url, filename
+class PixhostGalleryExtractor(ImagehostImageExtractor):
+ """Extractor for image galleries from pixhost.to"""
+ category = "pixhost"
+ subcategory = "gallery"
+ pattern = (r"(?:https?://)?((?:www\.)?pixhost\.(?:to|org)"
+ r"/gallery/([^/?#]+))")
+ test = ("https://pixhost.to/gallery/jSMFq", {
+ "pattern": PixhostImageExtractor.pattern,
+ "count": 3,
+ })
+
+ def items(self):
+ page = text.extr(self.request(
+ self.page_url).text, 'class="images"', "</div>")
+ data = {"_extractor": PixhostImageExtractor}
+ for url in text.extract_iter(page, '<a href="', '"'):
+ yield Message.Queue, url, data
+
+
class PostimgImageExtractor(ImagehostImageExtractor):
"""Extractor for single images from postimages.org"""
category = "postimg"