Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mikf
GitHub Repository: mikf/gallery-dl
Path: blob/master/test/results/8chan.py
8847 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.8chan")
8
_8chan = getattr(gallery_dl.extractor, "8chan")
9
10
11
__tests__ = (
12
{
13
"#url" : "https://8chan.moe/vhs/res/4.html",
14
"#class": _8chan._8chanThreadExtractor,
15
"#pattern": r"https://8chan\.moe/\.media/[0-9a-f]{64}\.\w+$",
16
"#count" : 14,
17
18
"archived" : False,
19
"autoSage" : False,
20
"boardDescription": "Film and Cinema",
21
"boardMarkdown" : None,
22
"boardName" : "Movies",
23
"boardUri" : "vhs",
24
"creation" : r"re:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z",
25
"cyclic" : False,
26
"email" : None,
27
"id" : r"re:^[0-9a-f]{6}$",
28
"locked" : False,
29
"markdown" : str,
30
"maxFileCount" : 5,
31
"maxFileSize" : "32.00 MB",
32
"maxMessageLength": 12000,
33
"message" : str,
34
"mime" : str,
35
"name" : "Anonymous",
36
"num" : int,
37
"originalName" : str,
38
"path" : r"re:/.media/[0-9a-f]{64}\.\w+$",
39
"pinned" : False,
40
"postId" : int,
41
"signedRole" : None,
42
"size" : int,
43
"threadId" : 4,
44
"thumb" : r"re:/.media/t_[0-9a-f]{64}$",
45
"uniquePosters" : 9,
46
"usesCustomCss" : True,
47
"usesCustomJs" : False,
48
"?wsPort" : int,
49
"?wssPort" : int,
50
},
51
52
{
53
"#url" : "https://8chan.moe/vhs/last/4.html",
54
"#class": _8chan._8chanThreadExtractor,
55
},
56
57
{
58
"#url" : "https://8chan.se/vhs/res/4.html",
59
"#class": _8chan._8chanThreadExtractor,
60
},
61
62
{
63
"#url" : "https://8chan.cc/vhs/res/4.html",
64
"#class": _8chan._8chanThreadExtractor,
65
},
66
67
{
68
"#url" : "https://8chan.moe/vhs/",
69
"#class": _8chan._8chanBoardExtractor,
70
},
71
72
{
73
"#url" : "https://8chan.moe/vhs/2.html",
74
"#class": _8chan._8chanBoardExtractor,
75
"#pattern": _8chan._8chanThreadExtractor.pattern,
76
"#count" : range(24, 32),
77
},
78
79
{
80
"#url" : "https://8chan.se/vhs/",
81
"#class": _8chan._8chanBoardExtractor,
82
},
83
84
{
85
"#url" : "https://8chan.cc/vhs/",
86
"#class": _8chan._8chanBoardExtractor,
87
},
88
89
)
90
91