From b8cf434bb095b36f673f417180395735f0e5f179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 23 Jul 2017 15:33:55 +0200 Subject: [PATCH] [rebeccablacktech] add thread extractor --- gallery_dl/extractor/__init__.py | 1 + gallery_dl/extractor/rebeccablacktech.py | 27 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 gallery_dl/extractor/rebeccablacktech.py diff --git a/gallery_dl/extractor/__init__.py b/gallery_dl/extractor/__init__.py index f0223b3f..7235e765 100644 --- a/gallery_dl/extractor/__init__.py +++ b/gallery_dl/extractor/__init__.py @@ -65,6 +65,7 @@ modules = [ "pinterest", "powermanga", "readcomiconline", + "rebeccablacktech", "reddit", "rule34", "safebooru", diff --git a/gallery_dl/extractor/rebeccablacktech.py b/gallery_dl/extractor/rebeccablacktech.py new file mode 100644 index 00000000..cee8eee6 --- /dev/null +++ b/gallery_dl/extractor/rebeccablacktech.py @@ -0,0 +1,27 @@ +# -*- 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://rbt.asia/""" + +from . import chan + + +class RebeccablacktechThreadExtractor(chan.FoolfuukaThreadExtractor): + """Extractor for images from threads on rbt.asia""" + category = "rbt" + root = "https://rbt.asia" + pattern = [r"(?:https?://)?(?:(?:archive\.)?rebeccablacktech\.com" + r"|rbt\.asia)/([^/]+)/thread/(\d+)"] + test = [ + ("https://rbt.asia/g/thread/61487650/", { + "url": "484f20ea9b9b58f6abb0cd37eaeab22431ac22c2", + }), + ("https://archive.rebeccablacktech.com/g/thread/61487650/", { + "url": "484f20ea9b9b58f6abb0cd37eaeab22431ac22c2", + }), + ]