summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/inkbunny.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/inkbunny.py')
-rw-r--r--gallery_dl/extractor/inkbunny.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/gallery_dl/extractor/inkbunny.py b/gallery_dl/extractor/inkbunny.py
index 3d09d79..8ee8ca9 100644
--- a/gallery_dl/extractor/inkbunny.py
+++ b/gallery_dl/extractor/inkbunny.py
@@ -205,6 +205,28 @@ class InkbunnyFavoriteExtractor(InkbunnyExtractor):
return self.api.search(params)
+class InkbunnySearchExtractor(InkbunnyExtractor):
+ """Extractor for inkbunny search results"""
+ subcategory = "search"
+ pattern = (BASE_PATTERN +
+ r"/submissionsviewall\.php\?([^#]+&mode=search&[^#]+)")
+ test = (("https://inkbunny.net/submissionsviewall.php?rid=ffffffffff"
+ "&mode=search&page=1&orderby=create_datetime&text=cute"
+ "&stringtype=and&keywords=yes&title=yes&description=no&artist="
+ "&favsby=&type=&days=&keyword_id=&user_id=&random=&md5="), {
+ "range": "1-10",
+ "count": 10,
+ })
+
+ def __init__(self, match):
+ InkbunnyExtractor.__init__(self, match)
+ self.params = text.parse_query(match.group(1))
+ self.params.pop("rid", None)
+
+ def posts(self):
+ return self.api.search(self.params)
+
+
class InkbunnyFollowingExtractor(InkbunnyExtractor):
"""Extractor for inkbunny user watches"""
subcategory = "following"