You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gallery-dl/gallery_dl/extractor/gelbooru.py

16 lines
492 B

from .danbooru import XMLBooruExtractor
10 years ago
class Extractor(XMLBooruExtractor):
10 years ago
def __init__(self, match, config):
XMLBooruExtractor.__init__(self, match, config)
10 years ago
self.category = "gelbooru"
self.api_url = "http://gelbooru.com/"
self.params = {"page":"dapi", "s":"post", "q":"index", "tags":self.tags}
def update_page(self, reset=False):
if reset is False:
self.params["pid"] += 1
else:
self.params["pid"] = 0