Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mikf
GitHub Repository: mikf/gallery-dl
Path: blob/master/test/results/4archive.py
8851 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.4archive")
8
_4archive = getattr(gallery_dl.extractor, "4archive")
9
10
11
__tests__ = (
12
{
13
"#url" : "https://4archive.org/board/u/thread/2397221",
14
"#category": ("", "4archive", "thread"),
15
"#class" : _4archive._4archiveThreadExtractor,
16
"#pattern" : r"https://(cdn\.4archive\.org/u/image/150\d/\d\d\d/\d+\.\w+|4archive\.org/image/image-404\.png)",
17
"#count" : 16,
18
19
"board" : "u",
20
"com" : str,
21
"date" : "type:datetime",
22
"name" : "Anonymous",
23
"no" : range(2397221, 2418158),
24
"thread": 2397221,
25
"time" : int,
26
"title" : "best anime",
27
"url" : str,
28
"width" : int,
29
"height": int,
30
"size" : int,
31
},
32
33
{
34
"#url" : "https://4archive.org/board/jp/thread/17611798",
35
"#category": ("", "4archive", "thread"),
36
"#class" : _4archive._4archiveThreadExtractor,
37
"#pattern" : r"https://(cdn\.4archive\.org/jp/image/\d\d\d\d/\d\d\d/\d+\.\w+|4archive\.org/image/image-404\.png)",
38
"#count" : 85,
39
},
40
41
{
42
"#url" : "https://4archive.org/board/u",
43
"#category": ("", "4archive", "board"),
44
"#class" : _4archive._4archiveBoardExtractor,
45
"#pattern" : _4archive._4archiveThreadExtractor.pattern,
46
"#range" : "1-20",
47
"#count" : 20,
48
},
49
50
{
51
"#url" : "https://4archive.org/board/jp/10",
52
"#category": ("", "4archive", "board"),
53
"#class" : _4archive._4archiveBoardExtractor,
54
"#pattern" : _4archive._4archiveThreadExtractor.pattern,
55
"#range" : "1-50",
56
"#count" : 50,
57
}
58
59
)
60
61