[nyafuu] add thread extractor (#18)

This commit is contained in:
Mike Fährmann
2017-07-08 17:16:41 +02:00
parent 4877ef6314
commit eb64fb267c
2 changed files with 22 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ modules = [
"mangastream", "mangastream",
"nhentai", "nhentai",
"nijie", "nijie",
"nyafuu",
"pawoo", "pawoo",
"pinterest", "pinterest",
"powermanga", "powermanga",

View File

@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Copyright 2017 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 images from https://archive.nyafuu.org/"""
from . import chan
class NyafuuThreadExtractor(chan.FoolfuukaThreadExtractor):
"""Extractor for images from threads on nyafuu.org"""
category = "nyafuu"
root = "https://archive.nyafuu.org"
pattern = [r"(?:https?://)?(?:archive\.)?nyafuu\.org/([^/]+)/thread/(\d+)"]
test = [("http://archive.nyafuu.org/c/thread/2849220/", {
"url": "bbe6f82944a45e359f5c8daf53f565913dc13e4f",
})]