[hiperdex] add 'artist' extractor (#606)

This commit is contained in:
Mike Fährmann 2020-04-12 02:32:37 +02:00
parent 291033720a
commit a6286bb551
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 28 additions and 1 deletions

View File

@ -48,7 +48,7 @@ HentaiFox https://hentaifox.com/ Galleries, Search Resul
HentaiHand https://hentaihand.com/ Galleries, Search Results, Tag Searches HentaiHand https://hentaihand.com/ Galleries, Search Results, Tag Searches
HentaiHere https://hentaihere.com/ Chapters, Manga HentaiHere https://hentaihere.com/ Chapters, Manga
Hentainexus https://hentainexus.com/ Galleries, Search Results Hentainexus https://hentainexus.com/ Galleries, Search Results
Hiperdex https://hiperdex.com/ Chapters, Manga Hiperdex https://hiperdex.com/ Artists, Chapters, Manga
Hitomi.la https://hitomi.la/ Galleries Hitomi.la https://hitomi.la/ Galleries
Hypnohub https://hypnohub.net/ Pools, Popular Images, Posts, Tag Searches Hypnohub https://hypnohub.net/ Pools, Popular Images, Posts, Tag Searches
Idol Complex https://idol.sankakucomplex.com/ Pools, Posts, Tag Searches Optional Idol Complex https://idol.sankakucomplex.com/ Pools, Posts, Tag Searches Optional

View File

@ -139,3 +139,30 @@ class HiperdexMangaExtractor(HiperdexBase, MangaExtractor):
results.append((url, self.chapter_data(chapter))) results.append((url, self.chapter_data(chapter)))
return results return results
class HiperdexArtistExtractor(HiperdexBase, MangaExtractor):
"""Extractor for an artists's manga on hiperdex.com"""
subcategory = "artist"
categorytransfer = False
chapterclass = HiperdexMangaExtractor
reverse = False
pattern = (r"(?:https?://)?(?:www\.)?hiperdex\.com"
r"(/manga-a(?:rtist|uthor)/([^/?&#]+))")
test = (
("https://hiperdex.com/manga-artist/beck-ho-an/"),
("https://hiperdex.com/manga-author/viagra/", {
"pattern": HiperdexMangaExtractor.pattern,
"count": ">= 6",
}),
)
def __init__(self, match):
MangaExtractor.__init__(self, match, self.root + match.group(1) + "/")
def chapters(self, page):
results = []
for info in text.extract_iter(page, 'id="manga-item-', '<img'):
url = text.extract(info, 'href="', '"')[0]
results.append((url, {}))
return results