|
|
@ -9,6 +9,7 @@
|
|
|
|
"""Extract image-urls from http://gelbooru.com/"""
|
|
|
|
"""Extract image-urls from http://gelbooru.com/"""
|
|
|
|
|
|
|
|
|
|
|
|
from .booru import XMLBooruExtractor
|
|
|
|
from .booru import XMLBooruExtractor
|
|
|
|
|
|
|
|
from .. import config
|
|
|
|
|
|
|
|
|
|
|
|
info = {
|
|
|
|
info = {
|
|
|
|
"category": "gelbooru",
|
|
|
|
"category": "gelbooru",
|
|
|
@ -26,6 +27,9 @@ class GelbooruExtractor(XMLBooruExtractor):
|
|
|
|
XMLBooruExtractor.__init__(self, match, info)
|
|
|
|
XMLBooruExtractor.__init__(self, match, info)
|
|
|
|
self.api_url = "http://gelbooru.com/"
|
|
|
|
self.api_url = "http://gelbooru.com/"
|
|
|
|
self.params = {"page":"dapi", "s":"post", "q":"index", "tags":self.tags}
|
|
|
|
self.params = {"page":"dapi", "s":"post", "q":"index", "tags":self.tags}
|
|
|
|
|
|
|
|
self.session.cookies.update(
|
|
|
|
|
|
|
|
config.get(("extractor", info["category"], "cookies"))
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def update_page(self, reset=False):
|
|
|
|
def update_page(self, reset=False):
|
|
|
|
if reset is False:
|
|
|
|
if reset is False:
|
|
|
|