Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mikf
GitHub Repository: mikf/gallery-dl
Path: blob/master/test/results/4chanarchives.py
8935 views
1
# -*- coding: utf-8 -*-
2
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License version 2 as
5
# published by the Free Software Foundation.
6
7
gallery_dl = __import__("gallery_dl.extractor.4chanarchives")
8
_4chanarchives = getattr(gallery_dl.extractor, "4chanarchives")
9
10
11
__tests__ = (
12
{
13
"#url" : "https://4chanarchives.com/board/c/thread/2707110",
14
"#category": ("", "4chanarchives", "thread"),
15
"#class" : _4chanarchives._4chanarchivesThreadExtractor,
16
"#pattern" : r"https://i\.imgur\.com/(0wLGseE|qbByWDc)\.jpg",
17
"#count" : 2,
18
19
"board" : "c",
20
"com" : str,
21
"name" : "Anonymous",
22
"no" : int,
23
"thread": "2707110",
24
"time" : r"re:2016-07-1\d \d\d:\d\d:\d\d",
25
"title" : "Ren Kagami from 'Oyako Neburi'",
26
},
27
28
{
29
"#url" : "https://4chanarchives.com/board/c/",
30
"#category": ("", "4chanarchives", "board"),
31
"#class" : _4chanarchives._4chanarchivesBoardExtractor,
32
"#pattern" : _4chanarchives._4chanarchivesThreadExtractor.pattern,
33
"#range" : "1-40",
34
"#count" : 40,
35
},
36
37
{
38
"#url" : "https://4chanarchives.com/board/c",
39
"#category": ("", "4chanarchives", "board"),
40
"#class" : _4chanarchives._4chanarchivesBoardExtractor,
41
},
42
43
{
44
"#url" : "https://4chanarchives.com/board/c/10",
45
"#category": ("", "4chanarchives", "board"),
46
"#class" : _4chanarchives._4chanarchivesBoardExtractor,
47
},
48
49
)
50
51