randydev commited on
Commit
f9dbf3d
·
verified ·
1 Parent(s): 3c1be09

Create is_site_available.py

Browse files
Files changed (1) hide show
  1. helper/is_site_available.py +259 -0
helper/is_site_available.py ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from torrents.bitsearch import Bitsearch
2
+ from torrents.glodls import Glodls
3
+ from torrents.kickass import Kickass
4
+ from torrents.libgen import Libgen
5
+ from torrents.limetorrents import Limetorrent
6
+ from torrents.magnet_dl import Magnetdl
7
+ from torrents.nyaa_si import NyaaSi
8
+ from torrents.pirate_bay import PirateBay
9
+ from torrents.torlock import Torlock
10
+ from torrents.torrent_galaxy import TorrentGalaxy
11
+ from torrents.torrentfunk import TorrentFunk
12
+ from torrents.torrentProject import TorrentProject
13
+ from torrents.x1337 import x1337
14
+ from torrents.your_bittorrent import YourBittorrent
15
+ from torrents.yts import Yts
16
+ from torrents.zooqle import Zooqle
17
+
18
+
19
+ def check_if_site_available(site):
20
+ all_sites = {
21
+ "1337x": {
22
+ "website": x1337,
23
+ "trending_available": True,
24
+ "trending_category": True,
25
+ "search_by_category": True,
26
+ "recent_available": True,
27
+ "recent_category_available": True,
28
+ "categories": [
29
+ "anime",
30
+ "music",
31
+ "games",
32
+ "tv",
33
+ "apps",
34
+ "documentaries",
35
+ "other",
36
+ "xxx",
37
+ "movies",
38
+ ],
39
+ "limit": 100,
40
+ },
41
+ "torlock": {
42
+ "website": Torlock,
43
+ "trending_available": True,
44
+ "trending_category": True,
45
+ "search_by_category": False,
46
+ "recent_available": True,
47
+ "recent_category_available": True,
48
+ "categories": [
49
+ "anime",
50
+ "music",
51
+ "games",
52
+ "tv",
53
+ "apps",
54
+ "documentaries",
55
+ "other",
56
+ "xxx",
57
+ "movies",
58
+ "books",
59
+ "images",
60
+ ], # ebooks
61
+ "limit": 50,
62
+ },
63
+ "zooqle": {
64
+ "website": Zooqle,
65
+ "trending_available": False,
66
+ "trending_category": False,
67
+ "search_by_category": False,
68
+ "recent_available": False,
69
+ "recent_category_available": False,
70
+ "categories": [],
71
+ "limit": 30,
72
+ },
73
+ "magnetdl": {
74
+ "website": Magnetdl,
75
+ "trending_available": False,
76
+ "trending_category": False,
77
+ "search_by_category": False,
78
+ "recent_available": True,
79
+ "recent_category_available": True,
80
+ # e-books
81
+ "categories": ["apps", "movies", "music", "games", "tv", "books"],
82
+ "limit": 40,
83
+ },
84
+ "tgx": {
85
+ "website": TorrentGalaxy,
86
+ "trending_available": True,
87
+ "trending_category": True,
88
+ "search_by_category": False,
89
+ "recent_available": True,
90
+ "recent_category_available": True,
91
+ "categories": [
92
+ "anime",
93
+ "music",
94
+ "games",
95
+ "tv",
96
+ "apps",
97
+ "documentaries",
98
+ "other",
99
+ "xxx",
100
+ "movies",
101
+ "books",
102
+ ],
103
+ "limit": 50,
104
+ },
105
+ "nyaasi": {
106
+ "website": NyaaSi,
107
+ "trending_available": False,
108
+ "trending_category": False,
109
+ "search_by_category": False,
110
+ "recent_available": True,
111
+ "recent_category_available": False,
112
+ "categories": [],
113
+ "limit": 50,
114
+ },
115
+ "piratebay": {
116
+ "website": PirateBay,
117
+ "trending_available": True,
118
+ "trending_category": False,
119
+ "search_by_category": False,
120
+ "recent_available": True,
121
+ "recent_category_available": True,
122
+ "categories": ["tv"],
123
+ "limit": 50,
124
+ },
125
+ "bitsearch": {
126
+ "website": Bitsearch,
127
+ "trending_available": True,
128
+ "trending_category": False,
129
+ "search_by_category": False,
130
+ "recent_available": False,
131
+ "recent_category_available": False,
132
+ "categories": [],
133
+ "limit": 50,
134
+ },
135
+ "kickass": {
136
+ "website": Kickass,
137
+ "trending_available": True,
138
+ "trending_category": True,
139
+ "search_by_category": False,
140
+ "recent_available": True,
141
+ "recent_category_available": True,
142
+ "categories": [
143
+ "anime",
144
+ "music",
145
+ "games",
146
+ "tv",
147
+ "apps",
148
+ "documentaries",
149
+ "other",
150
+ "xxx",
151
+ "movies",
152
+ "books",
153
+ ], # television applications
154
+ "limit": 50,
155
+ },
156
+ "libgen": {
157
+ "website": Libgen,
158
+ "trending_available": False,
159
+ "trending_category": False,
160
+ "search_by_category": False,
161
+ "recent_available": False,
162
+ "recent_category_available": False,
163
+ "categories": [],
164
+ "limit": 25,
165
+ },
166
+ "yts": {
167
+ "website": Yts,
168
+ "trending_available": True,
169
+ "trending_category": False,
170
+ "search_by_category": False,
171
+ "recent_available": True,
172
+ "recent_category_available": False,
173
+ "categories": [],
174
+ "limit": 20,
175
+ },
176
+ "limetorrent": {
177
+ "website": Limetorrent,
178
+ "trending_available": True,
179
+ "trending_category": False,
180
+ "search_by_category": False,
181
+ "recent_available": True,
182
+ "recent_category_available": True,
183
+ "categories": [
184
+ "anime",
185
+ "music",
186
+ "games",
187
+ "tv",
188
+ "apps",
189
+ "other",
190
+ "movies",
191
+ "books",
192
+ ], # applications and tv-shows
193
+ "limit": 50,
194
+ },
195
+ "torrentfunk": {
196
+ "website": TorrentFunk,
197
+ "trending_available": True,
198
+ "trending_category": True,
199
+ "search_by_category": False,
200
+ "recent_available": True,
201
+ "recent_category_available": True,
202
+ "categories": [
203
+ "anime",
204
+ "music",
205
+ "games",
206
+ "tv",
207
+ "apps",
208
+ "xxx",
209
+ "movies",
210
+ "books",
211
+ ], # television # software #adult # ebooks
212
+ "limit": 50,
213
+ },
214
+ "glodls": {
215
+ "website": Glodls,
216
+ "trending_available": True,
217
+ "trending_category": False,
218
+ "search_by_category": False,
219
+ "recent_available": True,
220
+ "recent_category_available": False,
221
+ "categories": [],
222
+ "limit": 45,
223
+ },
224
+ "torrentproject": {
225
+ "website": TorrentProject,
226
+ "trending_available": False,
227
+ "trending_category": False,
228
+ "search_by_category": False,
229
+ "recent_available": False,
230
+ "recent_category_available": False,
231
+ "categories": [],
232
+ "limit": 20,
233
+ },
234
+ "ybt": {
235
+ "website": YourBittorrent,
236
+ "trending_available": True,
237
+ "trending_category": True,
238
+ "search_by_category": False,
239
+ "recent_available": True,
240
+ "recent_category_available": True,
241
+ "categories": [
242
+ "anime",
243
+ "music",
244
+ "games",
245
+ "tv",
246
+ "apps",
247
+ "xxx",
248
+ "movies",
249
+ "books",
250
+ "pictures",
251
+ "other",
252
+ ], # book -> ebooks
253
+ "limit": 20,
254
+ },
255
+ }
256
+
257
+ if site in all_sites.keys():
258
+ return all_sites
259
+ return False