aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/imagehosts.py
diff options
context:
space:
mode:
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"