2015-11-08 00:02:37 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2019-02-08 13:45:40 +01:00
|
|
|
# Copyright 2015-2019 Mike Fährmann
|
2015-11-08 00:02:37 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-03-02 17:16:24 +01:00
|
|
|
"""Extract manga-chapters and entire manga from https://www.mangapanda.com/"""
|
2015-11-08 00:02:37 +01:00
|
|
|
|
2016-09-12 10:20:57 +02:00
|
|
|
from .mangareader import MangareaderMangaExtractor, MangareaderChapterExtractor
|
2015-11-08 00:02:37 +01:00
|
|
|
|
2017-02-01 00:53:19 +01:00
|
|
|
|
2016-09-12 10:20:57 +02:00
|
|
|
class MangapandaBase():
|
2015-11-28 22:21:35 +01:00
|
|
|
"""Base class for mangapanda extractors"""
|
2015-11-21 04:26:30 +01:00
|
|
|
category = "mangapanda"
|
2018-03-02 17:16:24 +01:00
|
|
|
root = "https://www.mangapanda.com"
|
2015-11-27 00:14:09 +01:00
|
|
|
|
|
|
|
|
2016-09-12 10:20:57 +02:00
|
|
|
class MangapandaChapterExtractor(MangapandaBase, MangareaderChapterExtractor):
|
|
|
|
"""Extractor for manga-chapters from mangapanda.com"""
|
2019-02-08 13:45:40 +01:00
|
|
|
pattern = r"(?:https?://)?(?:www\.)?mangapanda\.com((/[^/?&#]+)/(\d+))"
|
|
|
|
test = ("https://www.mangapanda.com/red-storm/2", {
|
2018-03-02 17:16:24 +01:00
|
|
|
"url": "1f633f776e950531ba9b1e81965316458e785261",
|
2019-02-14 16:07:17 +01:00
|
|
|
"keyword": "b24df4b9cc36383fb6a44e06d32a3884a4dcb5fb",
|
2019-02-08 13:45:40 +01:00
|
|
|
})
|
2019-02-11 18:38:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
class MangapandaMangaExtractor(MangapandaBase, MangareaderMangaExtractor):
|
|
|
|
"""Extractor for manga from mangapanda.com"""
|
2019-02-13 13:23:36 +01:00
|
|
|
chapterclass = MangapandaChapterExtractor
|
2019-02-11 18:38:47 +01:00
|
|
|
pattern = r"(?:https?://)?(?:www\.)?mangapanda\.com(/[^/?&#]+)/?$"
|
|
|
|
test = ("https://www.mangapanda.com/mushishi", {
|
|
|
|
"url": "357f965732371cac1990fee8b480f62e29141a42",
|
|
|
|
"keyword": "031b3ea085921c552de017ecbb9b906e462229c9",
|
|
|
|
})
|