Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mikf
GitHub Repository: mikf/gallery-dl
Path: blob/master/test/results/boosty.py
8800 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 boosty
8
9
10
__tests__ = (
11
{
12
"#url" : "https://boosty.to/milshoo",
13
"#class" : boosty.BoostyUserExtractor,
14
"#range" : "1-40",
15
"#count" : 40,
16
},
17
18
{
19
"#url" : "https://boosty.to/milshoo?postsFrom=1706742000&postsTo=1709247599",
20
"#class" : boosty.BoostyUserExtractor,
21
"#results" : "https://images.boosty.to/image/ff0d2006-3ee7-483d-a5fc-2a05b531742c?change_time=1707829201",
22
},
23
24
{
25
"#url" : "https://boosty.to/milshoo/media/all",
26
"#class" : boosty.BoostyMediaExtractor,
27
"#range" : "1-40",
28
"#count" : 40,
29
},
30
31
{
32
"#url" : "https://boosty.to/milshoo/posts/4304d8f0-3f49-4f97-a3f3-9f064bc32b2f",
33
"#class" : boosty.BoostyPostExtractor,
34
"#results" : "https://images.boosty.to/image/75f86086-fc67-4ed2-9365-2958d3d1a8f7?change_time=1711027786",
35
36
"count" : 1,
37
"num" : 1,
38
"extension": "",
39
"filename" : "75f86086-fc67-4ed2-9365-2958d3d1a8f7",
40
41
"_http_headers": {
42
"!Accept": str,
43
"Origin" : "https://www.boosty.to",
44
},
45
"file": {
46
"height" : 2048,
47
"id" : "75f86086-fc67-4ed2-9365-2958d3d1a8f7",
48
"rendition": "",
49
"size" : 1094903,
50
"type" : "image",
51
"url" : "https://images.boosty.to/image/75f86086-fc67-4ed2-9365-2958d3d1a8f7?change_time=1711027786",
52
"width" : 2048,
53
},
54
"user": {
55
"avatarUrl": "https://images.boosty.to/user/173542/avatar?change_time=1580888689",
56
"blogUrl" : "milshoo",
57
"flags" : {
58
"showPostDonations": True,
59
},
60
"hasAvatar": True,
61
"id" : 173542,
62
"name" : "Милшу",
63
},
64
"post": {
65
"comments" : dict,
66
"content" : [
67
"Привет! Это Милшу ) Я открываю комментарии в своём телеграм канале Милшу ( ",
68
"https://t.me/milshoonya",
69
" ) и хочу, чтобы вы первые протестировали его работу :3\nСсылку на вступление в чат оставлю здесь ",
70
"https://t.me/+Z_5ph-XnIQU2YWMy",
71
"\nТакже хотела напомнить, что мы собираем деньги на два арта от Ананаси: ",
72
"https://boosty.to/milshoo/single-payment/donation/550562/target?share=target_link",
73
"\nБуду очень благодарна за помощь :D  ",
74
],
75
"contentCounters": list,
76
"count" : dict,
77
"createdAt" : 1711027834,
78
"currencyPrices": {
79
"RUB": 0,
80
"USD": 0,
81
},
82
"date" : "dt:2024-03-21 13:30:34",
83
"donations" : 0,
84
"donators" : dict,
85
"hasAccess" : True,
86
"id" : "4304d8f0-3f49-4f97-a3f3-9f064bc32b2f",
87
"int_id" : 5547124,
88
"isBlocked" : False,
89
"isCommentsDenied": False,
90
"isDeleted" : False,
91
"isLiked" : False,
92
"isPublished": True,
93
"isRecord" : False,
94
"isWaitingVideo": False,
95
"links" : [
96
"https://t.me/milshoonya",
97
"https://t.me/+Z_5ph-XnIQU2YWMy",
98
"https://boosty.to/milshoo/single-payment/donation/550562/target?share=target_link",
99
],
100
"price" : 0,
101
"publishTime": 1711027834,
102
"showViewsCounter": False,
103
"signedQuery": "",
104
"tags" : [],
105
"teaser" : [],
106
"title" : "Открываю чат в телеге",
107
"updatedAt" : 1711027904
108
},
109
},
110
111
{
112
"#url" : "https://boosty.to/geekmedia/posts/31bb8fb6-83f1-404f-a597-f84bbe611d1d",
113
"#comment" : "video",
114
"#class" : boosty.BoostyPostExtractor,
115
},
116
117
{
118
"#url" : "https://boosty.to/xcang/posts/5d4d6f90-5d48-4442-a7e5-2164a858681d",
119
"#comment" : "audio",
120
"#class" : boosty.BoostyPostExtractor,
121
},
122
123
{
124
"#url" : "https://boosty.to/",
125
"#class" : boosty.BoostyFeedExtractor,
126
"#auth" : True,
127
"#range" : "1-40",
128
"#count" : 40,
129
},
130
131
{
132
"#url" : "https://boosty.to/app/settings/subscriptions",
133
"#class" : boosty.BoostyFollowingExtractor,
134
"#pattern" : boosty.BoostyUserExtractor,
135
"#auth" : True,
136
},
137
138
{
139
"#url" : "https://boosty.to/app/messages?dialogId=3598621",
140
"#class" : boosty.BoostyDirectMessagesExtractor,
141
"#auth" : True,
142
"#count" : 7,
143
144
"count" : 1,
145
"extension": "",
146
"file" : dict,
147
"user" : dict,
148
149
"post": {
150
"authorId": int,
151
"content" : list,
152
"date" : "type:datetime",
153
"dialogId": 3598621,
154
"id" : int,
155
},
156
},
157
158
)
159
160