[hiperdex] add 'artist' extractor (#606)
This commit is contained in:
parent
291033720a
commit
a6286bb551
@ -48,7 +48,7 @@ HentaiFox https://hentaifox.com/ Galleries, Search Resul
|
||||
HentaiHand https://hentaihand.com/ Galleries, Search Results, Tag Searches
|
||||
HentaiHere https://hentaihere.com/ Chapters, Manga
|
||||
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
|
||||
Hypnohub https://hypnohub.net/ Pools, Popular Images, Posts, Tag Searches
|
||||
Idol Complex https://idol.sankakucomplex.com/ Pools, Posts, Tag Searches Optional
|
||||
|
@ -139,3 +139,30 @@ class HiperdexMangaExtractor(HiperdexBase, MangaExtractor):
|
||||
results.append((url, self.chapter_data(chapter)))
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user