forgot to add get_instances.py

This commit is contained in:
BobIsMyManager 2022-07-14 11:57:56 +01:00
parent ddcbb9725d
commit 714ef46a8d
1 changed files with 26 additions and 0 deletions

View File

@ -376,6 +376,31 @@ def whoogle():
print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Whoogle')
def librex():
r = requests.get(
'https://raw.githubusercontent.com/hnhx/librex/main/README.md')
_list = {}
_list['normal'] = []
_list['tor'] = []
_list['i2p'] = []
tmp = re.findall(
r"\| \[(?:(?:[a-zA-Z0-9]+\.)+[a-zA-Z]{2,}|✅)\]\((https?:\/{2}(?:[a-zA-Z0-9]+\.)+[a-zA-Z0-9]{2,})", r.text)
tmp = filterLastSlash(tmp)
for item in tmp:
if item.strip() == "":
continue
elif item.endswith('.onion'):
_list['tor'].append(item)
elif item.endswith('.i2p'):
_list['i2p'].append(item)
else:
_list['normal'].append(item)
mightyList['librex'] = _list
print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Librex')
def rimgo():
r = requests.get(
'https://codeberg.org/video-prize-ranch/rimgo/raw/branch/main/instances.json')
@ -432,6 +457,7 @@ simplytranslate()
linvgatranslate()
searx_searxng()
whoogle()
librex()
rimgo()
cloudflare = []