Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mikf
GitHub Repository: mikf/gallery-dl
Path: blob/master/test/results/arena.py
8898 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 arena
8
9
10
__tests__ = (
11
{
12
"#url" : "https://www.are.na/mikf/touhou-zr5p8idnkag",
13
"#class" : arena.ArenaChannelExtractor,
14
"#results" : (
15
"https://d2w9rnfcy7mm78.cloudfront.net/40871580/original_3fb729c818f92de4539d4ff263eb6056.png?1762357121?bc=0",
16
"https://d2w9rnfcy7mm78.cloudfront.net/40871591/original_91d7c8144a5ba9776118f0af6d923f94.png?1762357155?bc=0",
17
"https://d2w9rnfcy7mm78.cloudfront.net/40871607/original_766f89eb3b06cc84372bea9d58132c93.png?1762357207?bc=0",
18
"https://attachments.are.na/40873309/ebf4eae61a70773f7494e10a98b18fe3.mp4?1762359389",
19
"https://d2w9rnfcy7mm78.cloudfront.net/40873379/original_289824f61eade100785db100652abd9a.jpg?1762359483?bc=0",
20
),
21
22
"extension": {"jpg", "png", "mp4"},
23
"filename" : str,
24
"count" : 6,
25
"num" : range(1, 5),
26
"source" : {None, dict},
27
"block" : {
28
"attachment" : {None, dict},
29
"base_class" : "Block",
30
"class" : {"Link", "Attachment", "Image"},
31
"comment_count" : 0,
32
"connected_at" : "iso:datetime",
33
"connected_by_user_id": 1127493,
34
"connected_by_user_slug": "mikf",
35
"connected_by_username": "mikf .",
36
"connection_id" : int,
37
"content" : {None, ""},
38
"content_html" : {None, ""},
39
"created_at" : "iso:datetime",
40
"date" : "type:datetime",
41
"date_updated" : "type:datetime",
42
"description" : str,
43
"description_html": str,
44
"embed" : None,
45
"generated_title" : str,
46
"id" : int,
47
"position" : int,
48
"selected" : False,
49
"state" : "available",
50
"title" : str,
51
"updated_at" : "iso:datetime",
52
"visibility" : "public",
53
"image" : dict,
54
"user" : dict,
55
},
56
"channel" : {
57
"added_to_at" : "2025-11-10T19:52:52.729Z",
58
"base_class" : "Channel",
59
"can_index" : False,
60
"class_name" : "Channel",
61
"collaboration" : False,
62
"collaborator_count": 0,
63
"collaborators" : [],
64
"created_at" : "2025-11-05T15:37:40.626Z",
65
"date" : "dt:2025-11-05 15:37:40",
66
"date_updated" : "type:datetime",
67
"follower_count": 0,
68
"id" : 4422732,
69
"kind" : "default",
70
"length" : 6,
71
"manifest" : dict,
72
"metadata" : {"description": ""},
73
"nsfw?" : False,
74
"open" : False,
75
"page" : 1,
76
"per" : 20,
77
"published" : True,
78
"share_link" : None,
79
"slug" : "touhou-zr5p8idnkag",
80
"status" : "closed",
81
"title" : '''Touhou "東方"''',
82
"updated_at" : "iso:datetime",
83
"user_id" : 1127493,
84
},
85
"owner" : {
86
"avatar" : "",
87
"badge" : None,
88
"base_class" : "User",
89
"can_index" : False,
90
"channel_count" : 3,
91
"class" : "User",
92
"created_at" : "2025-11-05T15:35:15.242Z",
93
"first_name" : "mikf",
94
"follower_count" : 0,
95
"following_count": 0,
96
"full_name" : "mikf .",
97
"id" : 1127493,
98
"initials" : "m.",
99
"is_confirmed" : True,
100
"is_exceeding_connections_limit": False,
101
"is_lifetime_premium": False,
102
"is_pending_confirmation": False,
103
"is_pending_reconfirmation": False,
104
"is_premium" : False,
105
"is_supporter" : False,
106
"last_name" : ".",
107
"metadata" : {"description": None},
108
"profile_id" : 4422723,
109
"slug" : "mikf",
110
"username" : "mikf .",
111
"avatar_image" : {
112
"display": "",
113
"thumb" : "",
114
},
115
},
116
"user" : {
117
"avatar" : "",
118
"badge" : None,
119
"base_class" : "User",
120
"can_index" : False,
121
"channel_count" : 3,
122
"class" : "User",
123
"created_at" : "2025-11-05T15:35:15.242Z",
124
"first_name" : "mikf",
125
"follower_count" : 0,
126
"following_count": 0,
127
"full_name" : "mikf .",
128
"id" : 1127493,
129
"initials" : "m.",
130
"is_confirmed" : True,
131
"is_exceeding_connections_limit": False,
132
"is_lifetime_premium": False,
133
"is_pending_confirmation": False,
134
"is_pending_reconfirmation": False,
135
"is_premium" : False,
136
"is_supporter" : False,
137
"last_name" : ".",
138
"metadata" : {"description": None},
139
"profile_id" : 4422723,
140
"slug" : "mikf",
141
"username" : "mikf .",
142
"avatar_image" : {
143
"display": "",
144
"thumb" : "",
145
},
146
},
147
},
148
149
{
150
"#url" : "https://are.na/evan-collins-1522646491/cassette-futurism",
151
"#class" : arena.ArenaChannelExtractor,
152
"#pattern" : r"https://d2w9rnfcy7mm78\.cloudfront\.net/\d+/original_\w+\.\w+\?\d+\?bc=\d",
153
"#count" : 160,
154
155
"extension": str,
156
"filename" : str,
157
"count" : 160,
158
"num" : range(1, 160),
159
"source" : None,
160
"block" : dict,
161
"channel" : {
162
"base_class" : "Channel",
163
"can_index" : True,
164
"class_name" : "Channel",
165
"collaboration" : False,
166
"collaborator_count": 0,
167
"collaborators" : [],
168
"created_at" : "2021-05-31T20:38:28.898Z",
169
"date" : "dt:2021-05-31 20:38:28",
170
"date_updated" : "type:datetime",
171
"follower_count": int,
172
"id" : 1102343,
173
"kind" : "default",
174
"length" : 160,
175
"manifest" : dict,
176
"metadata" : {"description": "The 70s-and-80s bulky, gray, angular scifi & hardware aesthetic. Eg. Syd Mead"},
177
"nsfw?" : False,
178
"open" : False,
179
"published" : True,
180
"share_link" : None,
181
"slug" : "cassette-futurism",
182
"status" : "closed",
183
"title" : "Cassette Futurism",
184
"updated_at" : "iso:datetime",
185
"user_id" : 51156,
186
},
187
"owner" : {
188
"avatar" : "https://static.avatars.are.na/51156/small_8c6098f64217eca6b4bcff44a7abf2d7.jpg?1563035757",
189
"badge" : "premium",
190
"base_class" : "User",
191
"can_index" : True,
192
"channel_count" : range(250, 300),
193
"class" : "User",
194
"created_at" : "2018-04-02T05:21:30.282Z",
195
"first_name" : "Evan",
196
"follower_count" : range(4900, 6000),
197
"following_count": range(10, 20),
198
"full_name" : "Evan Collins",
199
"id" : 51156,
200
"initials" : "EC",
201
"is_confirmed" : True,
202
"is_exceeding_connections_limit": False,
203
"is_lifetime_premium": False,
204
"is_pending_confirmation": False,
205
"is_pending_reconfirmation": False,
206
"is_premium" : True,
207
"is_supporter" : False,
208
"last_name" : "Collins",
209
"metadata" : {"description": None},
210
"profile_id" : 171860,
211
"slug" : "evan-collins-1522646491",
212
"username" : "Evan Collins",
213
"avatar_image" : {
214
"display": "https://static.avatars.are.na/51156/medium_8c6098f64217eca6b4bcff44a7abf2d7.jpg?1563035757",
215
"thumb" : "https://static.avatars.are.na/51156/small_8c6098f64217eca6b4bcff44a7abf2d7.jpg?1563035757",
216
},
217
},
218
"user" : {
219
"avatar" : "https://static.avatars.are.na/51156/small_8c6098f64217eca6b4bcff44a7abf2d7.jpg?1563035757",
220
"badge" : "premium",
221
"base_class" : "User",
222
"can_index" : True,
223
"channel_count" : range(250, 300),
224
"class" : "User",
225
"created_at" : "2018-04-02T05:21:30.282Z",
226
"first_name" : "Evan",
227
"follower_count" : range(4900, 6000),
228
"following_count": range(10, 20),
229
"full_name" : "Evan Collins",
230
"id" : 51156,
231
"initials" : "EC",
232
"is_confirmed" : True,
233
"is_exceeding_connections_limit": False,
234
"is_lifetime_premium": False,
235
"is_pending_confirmation": False,
236
"is_pending_reconfirmation": False,
237
"is_premium" : True,
238
"is_supporter" : False,
239
"last_name" : "Collins",
240
"metadata" : {"description": None},
241
"profile_id" : 171860,
242
"slug" : "evan-collins-1522646491",
243
"username" : "Evan Collins",
244
"avatar_image" : {
245
"display": "https://static.avatars.are.na/51156/medium_8c6098f64217eca6b4bcff44a7abf2d7.jpg?1563035757",
246
"thumb" : "https://static.avatars.are.na/51156/small_8c6098f64217eca6b4bcff44a7abf2d7.jpg?1563035757",
247
},
248
},
249
},
250
251
)
252
253