mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-24 03:32:33 +01:00
29 lines
1.0 KiB
Python
29 lines
1.0 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright 2015 Mike Fährmann
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
# published by the Free Software Foundation.
|
|
|
|
"""Extract image-urls from https://yande.re/"""
|
|
|
|
from . import booru
|
|
|
|
class YandereExtractor(booru.JSONBooruExtractor):
|
|
"""Base class for yandere extractors"""
|
|
category = "yandere"
|
|
api_url = "https://yande.re/post.json"
|
|
|
|
class YandereTagExtractor(YandereExtractor, booru.BooruTagExtractor):
|
|
"""Extract images from yandere based on search-tags"""
|
|
pattern = [r"(?:https?://)?(?:www\.)?yande\.re/post\?tags=([^&]+)"]
|
|
|
|
class YanderePoolExtractor(YandereExtractor, booru.BooruPoolExtractor):
|
|
"""Extract image-pools from yandere"""
|
|
pattern = [r"(?:https?://)?(?:www\.)?yande.re/pool/show/(\d+)"]
|
|
|
|
class YanderePostExtractor(YandereExtractor, booru.BooruPostExtractor):
|
|
"""Extract single images from yandere"""
|
|
pattern = [r"(?:https?://)?(?:www\.)?yande.re/post/show/(\d+)"]
|