Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mikf
GitHub Repository: mikf/gallery-dl
Path: blob/master/test/results/2chan.py
8836 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.2chan")
8
_2chan = getattr(gallery_dl.extractor, "2chan")
9
10
11
__tests__ = (
12
{
13
"#url" : "https://dec.2chan.net/70/res/17222.htm",
14
"#category": ("", "2chan", "thread"),
15
"#class" : _2chan._2chanThreadExtractor,
16
"#pattern" : r"https://dec\.2chan\.net/70/src/\d{13}\.jpg",
17
"#count" : ">= 2",
18
19
"board" : "70",
20
"board_name": "新板提案",
21
"com" : str,
22
"fsize" : r"re:\d+",
23
"name" : "名無し",
24
"no" : r"re:17\d\d\d",
25
"now" : r"re:2[34]/../..\(.\)..:..:..",
26
"post" : "無題",
27
"server" : "dec",
28
"thread" : "17222",
29
"tim" : r"re:^\d{13}$",
30
"time" : r"re:^\d{10}$",
31
"title" : "画像会話板",
32
},
33
34
)
35
36