diff --git a/docs/supportedsites.md b/docs/supportedsites.md
index 1865f82e..6e05898a 100644
--- a/docs/supportedsites.md
+++ b/docs/supportedsites.md
@@ -364,7 +364,7 @@ Consider all listed sites to potentially be NSFW.
| Imagetwist |
https://imagetwist.com/ |
- individual Images |
+ Galleries, individual Images |
|
diff --git a/gallery_dl/extractor/imagehosts.py b/gallery_dl/extractor/imagehosts.py
index 94019bd6..5f1e0f48 100644
--- a/gallery_dl/extractor/imagehosts.py
+++ b/gallery_dl/extractor/imagehosts.py
@@ -183,6 +183,23 @@ class ImagetwistImageExtractor(ImagehostImageExtractor):
return url, filename
+class ImagetwistGalleryExtractor(ImagehostImageExtractor):
+ """Extractor for galleries from imagetwist.com"""
+ category = "imagetwist"
+ subcategory = "gallery"
+ pattern = (r"(?:https?://)?((?:www\.|phun\.)?"
+ r"image(?:twist|haha)\.com/(p/[^/?#]+/\d+))")
+ example = "https://imagetwist.com/p/USER/12345/NAME"
+
+ def items(self):
+ data = {"_extractor": ImagetwistImageExtractor}
+ root = self.page_url[:self.page_url.find("/", 8)]
+ page = self.request(self.page_url).text
+ gallery = text.extr(page, 'class="gallerys', "