1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00
gallery-dl/gallery_dl/extractor/rebeccablacktech.py
2017-11-28 19:35:47 +01:00

28 lines
899 B
Python

# -*- 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": "fadd274b25150a1bdf03a40c58db320fa3b617c4",
}),
("https://archive.rebeccablacktech.com/g/thread/61487650/", {
"url": "fadd274b25150a1bdf03a40c58db320fa3b617c4",
}),
]