Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mikf
GitHub Repository: mikf/gallery-dl
Path: blob/master/test/results/atfforum.py
8844 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
from gallery_dl.extractor import xenforo
8
9
10
__tests__ = (
11
{
12
"#url" : "https://www.allthefallen.moe/forum/index.php?threads/final-fantasy-xiv.57090/post-21765744",
13
"#category": ("xenforo", "atfforum", "post"),
14
"#class" : xenforo.XenforoPostExtractor,
15
"#auth" : True,
16
"#results" : "https://allthefallen.moe/forum/index.php?attachments/ffxiv_dx11-2025-04-28-09-16-54-png.4368606/",
17
18
"count" : 1,
19
"extension" : "png",
20
"filename" : "ffxiv_dx11 2025-04-28 09-16-54",
21
"id" : 4368606,
22
"num" : 1,
23
"num_external": 0,
24
"num_internal": 1,
25
"type" : "inline",
26
"post" : {
27
"attachments": "",
28
"author" : "mayumiXIV",
29
"author_id" : "965353",
30
"author_url" : "https://allthefallen.moe/forum/index.php?members/mayumixiv.965353/",
31
"count" : 1,
32
"date" : "dt:2025-04-28 15:28:24",
33
"id" : "21765744",
34
"content" : str
35
},
36
"thread" : {
37
"author" : "Kupowo",
38
"author_id" : "649590",
39
"author_url": "https://allthefallen.moe/forum/index.php?members/kupowo.649590/",
40
"date" : "dt:2023-12-25 21:15:53",
41
"id" : "57090",
42
"section" : "Gaming",
43
"title" : "Final Fantasy XIV",
44
"url" : "https://allthefallen.moe/forum/index.php?threads/final-fantasy-xiv.57090/",
45
"posts" : range(210, 280),
46
"views" : range(7300, 9000),
47
"tags" : [
48
"ff14",
49
"final fantasy 14",
50
"final fantasy xiv",
51
],
52
},
53
},
54
55
{
56
"#url" : "https://www.allthefallen.moe/forum/index.php?threads/final-fantasy-xiv.57090/#post-21765744",
57
"#category": ("xenforo", "atfforum", "post"),
58
"#class" : xenforo.XenforoPostExtractor,
59
},
60
61
{
62
"#url" : "https://www.allthefallen.moe/forum/index.php?threads/shoujo-ramune-episode-1-decensored-by-deepcreampy.17050/#post-19803487",
63
"#comment" : "incomplete video URL (#8786)",
64
"#category": ("xenforo", "atfforum", "post"),
65
"#class" : xenforo.XenforoPostExtractor,
66
"#auth" : True,
67
"#results" : "https://allthefallen.moe/forum/data/video/1094/1094367-e46ad8636dee0d4488db56d3770919cc.mp4",
68
},
69
70
{
71
"#url" : "https://www.allthefallen.moe/forum/index.php?threads/final-fantasy-xiv.57090/",
72
"#category": ("xenforo", "atfforum", "thread"),
73
"#class" : xenforo.XenforoThreadExtractor,
74
"#auth" : True,
75
"#count" : range(50, 90),
76
77
"count" : int,
78
"num" : int,
79
"num_external": int,
80
"num_internal": int,
81
"type" : {"inline", "external"},
82
"post" : {
83
"attachments": str,
84
"author" : str,
85
"author_id" : r"re:\d",
86
"author_url" : r"re:https://allthefallen.moe/forum/index.php\?members/.+",
87
"count" : range(0, 9),
88
"date" : "type:datetime",
89
"id" : r"re:\d+",
90
"content" : str,
91
},
92
"thread" : {
93
"author" : "Kupowo",
94
"author_id" : "649590",
95
"author_url": "https://allthefallen.moe/forum/index.php?members/kupowo.649590/",
96
"date" : "dt:2023-12-25 21:15:53",
97
"id" : "57090",
98
"section" : "Gaming",
99
"title" : "Final Fantasy XIV",
100
"url" : "https://allthefallen.moe/forum/index.php?threads/final-fantasy-xiv.57090/",
101
"posts" : range(210, 280),
102
"views" : range(7300, 9000),
103
"tags" : [
104
"ff14",
105
"final fantasy 14",
106
"final fantasy xiv",
107
],
108
},
109
},
110
111
{
112
"#url" : "https://www.allthefallen.moe/forum/index.php?forums/announcements.16/",
113
"#category": ("xenforo", "atfforum", "forum"),
114
"#class" : xenforo.XenforoForumExtractor,
115
"#pattern" : xenforo.XenforoThreadExtractor.pattern,
116
"#auth" : True,
117
"#count" : range(100, 200),
118
},
119
120
{
121
"#url" : "https://allthefallen.moe/forum/index.php?media/1737485564664-png.224260/",
122
"#category": ("xenforo", "atfforum", "media-item"),
123
"#class" : xenforo.XenforoMediaItemExtractor,
124
"#options" : {"metadata": False},
125
"#results" : "https://allthefallen.moe/forum/index.php?media/1737485564664-png.224260/full",
126
127
"extension": "png",
128
"filename" : "1737485564664",
129
"id" : "224260",
130
},
131
132
{
133
"#url" : "https://allthefallen.moe/forum/index.php?media/users/peters.150992/",
134
"#category": ("xenforo", "atfforum", "media-user"),
135
"#class" : xenforo.XenforoMediaUserExtractor,
136
"#options" : {"metadata": False},
137
"#auth" : True,
138
"#results" : (
139
"https://allthefallen.moe/forum/index.php?media/eden-invitation-jpg.254624/full",
140
"https://allthefallen.moe/forum/index.php?media/1737485564664-png.224260/full",
141
"https://allthefallen.moe/forum/index.php?media/laughing-cat-emoji-png.243825/full",
142
),
143
},
144
145
{
146
"#url" : "https://allthefallen.moe/forum/index.php?members/peters.150992/#xfmgMedia",
147
"#category": ("xenforo", "atfforum", "media-user"),
148
"#class" : xenforo.XenforoMediaUserExtractor,
149
},
150
151
{
152
"#url" : "https://www.allthefallen.moe/forum/index.php?media/categories/translations.2/",
153
"#category": ("xenforo", "atfforum", "media-category"),
154
"#class" : xenforo.XenforoMediaCategoryExtractor,
155
},
156
157
{
158
"#url" : "https://allthefallen.moe/forum/index.php?media/albums/2-%E9%AD%94%E6%B3%95%E5%B0%91%E5%A5%B3%E3%81%AB%E3%81%82%E3%81%93%E3%81%8C%E3%82%8C%E3%81%A6-mahou-shoujo-ni-akogarete.7385/",
159
"#category": ("xenforo", "atfforum", "media-album"),
160
"#class" : xenforo.XenforoMediaAlbumExtractor,
161
},
162
163
)
164
165