diff --git a/docs/supportedsites.rst b/docs/supportedsites.rst index 2761138c..a4148fad 100644 --- a/docs/supportedsites.rst +++ b/docs/supportedsites.rst @@ -51,6 +51,7 @@ MangaDex https://mangadex.org/ Chapters, Manga Mangapanda https://www.mangapanda.com/ Chapters, Manga MangaPark https://mangapark.me/ Chapters, Manga Mangareader https://www.mangareader.net/ Chapters, Manga +Ngomik http://ngomik.in/ Chapters nhentai https://nhentai.net/ Galleries, Search Results Niconico Seiga http://seiga.nicovideo.jp Images from Users, individual Images Required nijie https://nijie.info/ |Images from Use-3| Required @@ -73,7 +74,6 @@ Sense-Scans http://sensescans.com/ Chapters, Manga Simply Hentai https://www.simply-hentai.com/ Galleries, individual Images, Videos SlideShare https://www.slideshare.net/ Presentations SmugMug https://www.smugmug.com/ |Albums, individ-5| Optional (OAuth) -Subapics https://subapics.com/ Chapters, Manga The /b/ Archive https://thebarchive.com/ Threads Tumblr https://www.tumblr.com/ Images from Users, Likes, Posts, Tag-Searches Optional (OAuth) Twitter https://twitter.com/ Timelines, Tweets, Media Tweets diff --git a/gallery_dl/extractor/__init__.py b/gallery_dl/extractor/__init__.py index 63b6b894..3bb9bb90 100644 --- a/gallery_dl/extractor/__init__.py +++ b/gallery_dl/extractor/__init__.py @@ -58,6 +58,7 @@ modules = [ "mangareader", "mangastream", "myportfolio", + "ngomik", "nhentai", "nijie", "nyafuu", @@ -80,7 +81,6 @@ modules = [ "simplyhentai", "slideshare", "smugmug", - "subapics", "thebarchive", "tumblr", "twitter", diff --git a/gallery_dl/extractor/ngomik.py b/gallery_dl/extractor/ngomik.py new file mode 100644 index 00000000..561045f1 --- /dev/null +++ b/gallery_dl/extractor/ngomik.py @@ -0,0 +1,53 @@ +# -*- 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. + +"""Extract manga-chapters and entire manga from http://ngomik.in/""" + +from .common import ChapterExtractor +from .. import text + + +class NgomikChapterExtractor(ChapterExtractor): + """Extractor for manga-chapters from ngomik.in""" + category = "ngomik" + root = "http://ngomik.in" + pattern = [r"(?:https?://)?(?:www\.)?ngomik\.in" + r"/manga/([^/?]+/chapter-[^/?]+)"] + test = [(("http://ngomik.in/manga/chuuko-demo-koi-ga-shitai" + "/chapter-21-5?style=list"), { + "url": "e87ed713f31d576013f179b50b4e10d7c678e53a", + "keyword": "a774caea148fc18a7d889f453dadbe3def9e0c2c", + })] + + def __init__(self, match): + url = "{}/manga/{}?style=list".format(self.root, match.group(1)) + ChapterExtractor.__init__(self, url) + + def get_metadata(self, page): + info = text.extract(page, '