99
1010mightyList = {}
1111
12+
1213def filterLastSlash (urlList ):
1314 tmp = []
1415 for i in urlList :
1516 if i .endswith ('/' ):
1617 tmp .append (i [:- 1 ])
17- print (Fore .YELLOW + "filtered " + Style .RESET_ALL + i )
18+ print (Fore .YELLOW + "Fixed " + Style .RESET_ALL + i )
1819 else :
1920 tmp .append (i )
2021 return tmp
@@ -32,10 +33,11 @@ def filterLastSlash(urlList):
3233 elif instance [1 ]['type' ] == 'onion' :
3334 invidiousList ['tor' ].append (instance [1 ]['uri' ])
3435mightyList ['invidious' ] = invidiousList
35- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'Invidious' )
36+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'Invidious' )
3637
3738# ProxiTok
38- r = requests .get ('https://raw.githubusercontent.com/wiki/pablouser1/ProxiTok/Public-instances.md' )
39+ r = requests .get (
40+ 'https://raw.githubusercontent.com/wiki/pablouser1/ProxiTok/Public-instances.md' )
3941
4042tmp = re .findall (
4143 r"\| \[.*\]\(([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}.*\|.*\|" , r .text )
@@ -45,18 +47,20 @@ def filterLastSlash(urlList):
4547for item in tmp :
4648 proxiTokList ['normal' ].append (item )
4749mightyList ['proxiTok' ] = proxiTokList
48- print ('fetched ProxiTok' )
50+ print (Fore . GREEN + 'Fetched ' + Style . RESET_ALL + ' ProxiTok' )
4951
5052# Send
51- r = requests .get ('https://gitlab.com/timvisee/send-instances/-/raw/master/README.md' )
52- tmp = re .findall (r"- ([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z0-9]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}" , r .text )
53+ r = requests .get (
54+ 'https://gitlab.com/timvisee/send-instances/-/raw/master/README.md' )
55+ tmp = re .findall (
56+ r"- ([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z0-9]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}" , r .text )
5357sendList = {}
5458sendList ['normal' ] = []
5559sendList ['tor' ] = []
5660for item in tmp :
5761 sendList ['normal' ].append (item )
5862mightyList ['send' ] = sendList
59- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'Send' )
63+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'Send' )
6064
6165# Nitter
6266r = requests .get ('https://github.com/zedeus/nitter/wiki/Instances' )
@@ -82,7 +86,7 @@ def filterLastSlash(urlList):
8286 url = 'https://' + url
8387 nitterList ['normal' ].append (url )
8488mightyList ['nitter' ] = nitterList
85- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'Nitter' )
89+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'Nitter' )
8690
8791# Bibliogram
8892r = requests .get ('https://bibliogram.pussthecat.org/api/instances' )
@@ -93,7 +97,7 @@ def filterLastSlash(urlList):
9397for item in rJson ['data' ]:
9498 bibliogramList ['normal' ].append (item ['address' ])
9599mightyList ['bibliogram' ] = bibliogramList
96- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'Bibliogram' )
100+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'Bibliogram' )
97101
98102# LibReddit
99103r = requests .get (
@@ -113,7 +117,7 @@ def filterLastSlash(urlList):
113117 else :
114118 libredditList ['normal' ].append (item )
115119mightyList ['libreddit' ] = libredditList
116- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'LibReddit' )
120+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'LibReddit' )
117121
118122# Teddit
119123r = requests .get (
@@ -132,7 +136,7 @@ def filterLastSlash(urlList):
132136 tedditList ['tor' ].append (onion )
133137
134138mightyList ['teddit' ] = tedditList
135- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'Teddit' )
139+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'Teddit' )
136140
137141
138142# Wikiless
@@ -150,7 +154,7 @@ def filterLastSlash(urlList):
150154 else :
151155 wikilessList ['normal' ].append ('https://' + item )
152156mightyList ['wikiless' ] = wikilessList
153- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'Wikiless' )
157+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'Wikiless' )
154158
155159# Scribe
156160r = requests .get (
@@ -162,7 +166,7 @@ def filterLastSlash(urlList):
162166for item in rJson :
163167 scribeList ['normal' ].append (item )
164168mightyList ['scribe' ] = scribeList
165- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'Scribe' )
169+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'Scribe' )
166170
167171# SimplyTranslate
168172r = requests .get ('https://simple-web.org/instances/simplytranslate' )
@@ -177,7 +181,7 @@ def filterLastSlash(urlList):
177181 simplyTranslateList ['tor' ].append ('http://' + item )
178182
179183mightyList ['simplyTranslate' ] = simplyTranslateList
180- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'SimplyTranslate' )
184+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'SimplyTranslate' )
181185
182186# LinvgaTranslate
183187r = requests .get (
@@ -189,7 +193,7 @@ def filterLastSlash(urlList):
189193for item in rJson :
190194 lingvaList ['normal' ].append (item )
191195mightyList ['lingva' ] = lingvaList
192- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'LinvgaTranslate' )
196+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'LinvgaTranslate' )
193197
194198
195199# SearX, SearXNG
@@ -222,7 +226,7 @@ def filterLastSlash(urlList):
222226
223227mightyList ['searx' ] = searxList
224228mightyList ['searxng' ] = searxngList
225- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'SearX, SearXNG' )
229+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'SearX, SearXNG' )
226230
227231# Whoogle
228232r = requests .get (
@@ -240,7 +244,7 @@ def filterLastSlash(urlList):
240244 else :
241245 whoogleList ['normal' ].append (item )
242246mightyList ['whoogle' ] = whoogleList
243- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'Whoogle' )
247+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'Whoogle' )
244248
245249# Rimgo
246250r = requests .get (
@@ -258,7 +262,7 @@ def filterLastSlash(urlList):
258262 else :
259263 rimgoList ['normal' ].append ('https://' + item )
260264mightyList ['rimgo' ] = rimgoList
261- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'Rimgo' )
265+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'Rimgo' )
262266
263267# Peertube
264268r = requests .get (
@@ -270,7 +274,7 @@ def filterLastSlash(urlList):
270274 myList .append ('https://' + k ['host' ])
271275
272276mightyList ['peertube' ] = myList
273- print (Fore .GREEN + 'fetched ' + Style .RESET_ALL + 'Peertube' )
277+ print (Fore .GREEN + 'Fetched ' + Style .RESET_ALL + 'Peertube' )
274278
275279
276280def isValid (url ): # This code is contributed by avanitrachhadiya2155
0 commit comments