[zzup] remove module (#4604)

https://github.com/mikf/gallery-dl/issues/4604#issuecomment-3184960897

now redirects to aipornpix.com
This commit is contained in:
Mike Fährmann
2025-08-23 19:49:39 +02:00
parent ab152c1122
commit bc376d8848
4 changed files with 0 additions and 120 deletions

View File

@@ -1135,12 +1135,6 @@ Consider all listed sites to potentially be NSFW.
<td>individual Images, Tag Searches</td>
<td>Supported</td>
</tr>
<tr id="zzup" title="zzup">
<td>Zzup</td>
<td>https://zzup.com/</td>
<td>Galleries</td>
<td></td>
</tr>
<tr id="kabeuchi" title="kabeuchi">
<td>かべうち</td>
<td>https://kabe-uchiroom.com/</td>

View File

@@ -217,7 +217,6 @@ modules = [
"xvideos",
"yiffverse",
"zerochan",
"zzup",
"booru",
"moebooru",
"foolfuuka",

View File

@@ -1,63 +0,0 @@
# -*- coding: utf-8 -*-
# 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.
"""Extractors for https://zzup.com/"""
from .common import GalleryExtractor
from .. import text
class ZzupGalleryExtractor(GalleryExtractor):
category = "zzup"
directory_fmt = ("{category}", "{title}")
filename_fmt = "{num:>03}.{extension}"
archive_fmt = "{slug}_{num}"
root = "https://zzup.com"
pattern = (r"(?:https?://)?(up\.|w+\.)?zzup\.com(/(?:viewalbum|content)"
r"/[\w=]+/([^/?#]+)/[\w=]+)/(?:index|page-\d+)\.html")
example = "https://zzup.com/content/xyz=/12345_TITLE/123=/index.html"
def __init__(self, match):
subdomain, path, self.slug = match.groups()
if subdomain == "up.":
self.root = "https://up.zzup.com"
self.images = self.images_v2
url = f"{self.root}{path}/index.html"
GalleryExtractor.__init__(self, match, url)
def metadata(self, page):
return {
"slug" : self.slug,
"title": text.unescape(text.extr(
page, "<title>", "</title>"))[:-11],
}
def images(self, page):
path = text.extr(page, 'class="picbox"><a target="_blank" href="', '"')
count = text.parse_int(text.extr(path, "-pics-", "-mirror"))
page = self.request(self.root + path).text
url = self.root + text.extr(page, '\n<a href="', '"')
p1, _, p2 = url.partition("/image0")
p2 = p2[4:]
return [(f"{p1}/image{i:>05}{p2}", None) for i in range(1, count + 1)]
def images_v2(self, page):
base = f"{self.root}/showimage/"
results = []
while True:
for path in text.extract_iter(
page, ' class="picbox"><a target="_blank" href="', '"'):
url = f"{base}{'/'.join(path.split('/')[2:-2])}/zzup.com.jpg"
results.append((url, None))
pos = page.find("glyphicon-arrow-right")
if pos < 0:
break
path = text.rextr(page, ' href="', '"', pos)
page = self.request(text.urljoin(self.page_url, path)).text
return results

View File

@@ -1,50 +0,0 @@
# -*- coding: utf-8 -*-
# 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.
from gallery_dl.extractor import zzup
__tests__ = (
{
"#url" : "https://zzup.com/content/NjM=/MetArt_20080206_viki_c_sensazioni_by_ingret/OTE=/index.html",
"#category": ("", "zzup", "gallery"),
"#class" : zzup.ZzupGalleryExtractor,
"#pattern" : r"https://zzup\.com/[^/?#]+/showimage/zzup-8769086487/image00\d\d\d-5896498214-1-9689595623/MetArt-20080206_viki_c_sensazioni_by_ingret/9879560327/zzup.com.jpg",
"slug" : "MetArt_20080206_viki_c_sensazioni_by_ingret",
"title" : "MetArt [2008 02 06] Viki C - Sensazioni by ingret",
"num" : int,
"count" : 135,
},
{
"#url" : "https://zzup.com/content/MTc2MDYxMw==/Courtesan/NDA=/page-1.html",
"#category": ("", "zzup", "gallery"),
"#class" : zzup.ZzupGalleryExtractor,
"#pattern" : r"https://zzup\.com/[^/?#]+/showimage/zzup-8769086487/image000\d\d-5896498214-40-9689595623/Courtesan/9879560327/zzup.com.jpg",
},
{
"#url" : "https://www.zzup.com/content/NjM=/MetArt_20080206_viki_c_sensazioni_by_ingret/OTE=/index.html",
"#category": ("", "zzup", "gallery"),
"#class" : zzup.ZzupGalleryExtractor,
"#pattern" : r"https://zzup\.com/[^/?#]+/showimage/zzup-8769086487/image\d+-5896498214-\d+-9689595623/[^/?#]+/9879560327/zzup.com.jpg",
},
{
"#url" : "https://w.zzup.com/content/NjM=/MetArt_20080206_viki_c_sensazioni_by_ingret/OTE=/index.html",
"#category": ("", "zzup", "gallery"),
"#class" : zzup.ZzupGalleryExtractor,
"#pattern" : r"https://zzup\.com/[^/?#]+/showimage/zzup-8769086487/image\d+-5896498214-\d+-9689595623/[^/?#]+/9879560327/zzup.com.jpg",
},
{
"#url" : "https://up.zzup.com/viewalbum/TE9MQUxVWlogLSBMYWxsaSAtIFdhcm0gYW5kIENvenk=/NTM0MTk=/OTgz/index.html",
"#category": ("", "zzup", "gallery"),
"#class" : zzup.ZzupGalleryExtractor,
},
)