diff --git a/docs/supportedsites.rst b/docs/supportedsites.rst index 4b251379..88f5a7b3 100644 --- a/docs/supportedsites.rst +++ b/docs/supportedsites.rst @@ -27,6 +27,7 @@ Futaba Channel https://www.2chan.net/ Threads Gelbooru https://gelbooru.com/ Pools, Posts, Tag-Searches Gfycat https://gfycat.com/ individual Images HBrowse http://www.hbrowse.com/ Chapters, Manga +Hentai Cafe https://hentai.cafe/ Chapters, Manga Hentai Foundry https://www.hentai-foundry.com/ Images from Users, individual Images Hentai2Read https://hentai2read.com/ Chapters, Manga HentaiHere https://hentaihere.com/ Chapters, Manga diff --git a/gallery_dl/extractor/__init__.py b/gallery_dl/extractor/__init__.py index 3bb9bb90..9176ed31 100644 --- a/gallery_dl/extractor/__init__.py +++ b/gallery_dl/extractor/__init__.py @@ -34,6 +34,7 @@ modules = [ "gfycat", "hbrowse", "hentai2read", + "hentaicafe", "hentaifoundry", "hentaihere", "hitomi", diff --git a/gallery_dl/extractor/hentaicafe.py b/gallery_dl/extractor/hentaicafe.py new file mode 100644 index 00000000..fbe97fbd --- /dev/null +++ b/gallery_dl/extractor/hentaicafe.py @@ -0,0 +1,66 @@ +# -*- coding: utf-8 -*- + +# Copyright 2018 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. + +"""Extractors for https://hentai.cafe/""" + +from . import foolslide +from .. import text +import re + + +class HentaicafeChapterExtractor(foolslide.FoolslideChapterExtractor): + """Extractor for manga-chapters from hentai.cafe""" + category = "hentaicafe" + pattern = foolslide.chapter_pattern(r"(?:www\.)?hentai\.cafe/manga") + test = [("https://hentai.cafe/manga/read/saitom-box/en/0/1/", { + "url": "8c6a8c56875ba3ed7ab0a74a64f9960077767fc2", + "keyword": "1b24a3e8625b89d160d01ce3eb5e5eb12fbbf648", + })] + + def get_metadata(self, page): + info = text.unescape(text.extract(page, '