Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mikf
GitHub Repository: mikf/gallery-dl
Path: blob/master/test/results/4chan.py
8837 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.4chan")
8
_4chan = getattr(gallery_dl.extractor, "4chan")
9
10
11
__tests__ = (
12
{
13
"#url" : "https://boards.4chan.org/tg/thread/15396072/",
14
"#category": ("", "4chan", "thread"),
15
"#class" : _4chan._4chanThreadExtractor,
16
"#sha1_url" : "39082ad166161966d7ba8e37f2173a824eb540f0",
17
"#sha1_metadata": "2cadd32796492baca25f5060dc95e9f4e24a0ff2",
18
"#sha1_content" : "742c6d256c813b29f246e1d765bba949fc3ac453",
19
},
20
21
{
22
"#url" : "https://boards.4channel.org/tg/thread/15396072/",
23
"#category": ("", "4chan", "thread"),
24
"#class" : _4chan._4chanThreadExtractor,
25
"#sha1_url" : "39082ad166161966d7ba8e37f2173a824eb540f0",
26
"#sha1_metadata": "2cadd32796492baca25f5060dc95e9f4e24a0ff2",
27
},
28
29
{
30
"#url" : "https://boards.4chan.org/wg/thread/8010591",
31
"#comment" : "file contents filled with null bytes (#7883)",
32
"#class" : _4chan._4chanThreadExtractor,
33
"#range" : "1",
34
"#log" : "File data consists of null bytes",
35
"#results" : "https://i.4cdn.org/wg/1694023485631944.jpg",
36
"#sha1_content": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
37
},
38
39
{
40
"#url" : "https://boards.4channel.org/po/",
41
"#category": ("", "4chan", "board"),
42
"#class" : _4chan._4chanBoardExtractor,
43
"#pattern" : _4chan._4chanThreadExtractor.pattern,
44
"#count" : ">= 100",
45
},
46
47
)
48
49