aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBobIsMyManager <bimmgitsignature.nly8m@simplelogin.co>2022-07-14 11:57:56 +0100
committerBobIsMyManager <bimmgitsignature.nly8m@simplelogin.co>2022-07-14 11:57:56 +0100
commit714ef46a8d02ea749e4b475be807bdb6963f67bf (patch)
tree87c6ec78ec726d2b61ce714d2a1366234b151bb3 /src
parentnon-breaking optimizations to search and librex support (diff)
downloadlibredirect-714ef46a8d02ea749e4b475be807bdb6963f67bf.zip
forgot to add get_instances.py
Diffstat (limited to 'src')
-rw-r--r--src/instances/get_instances.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py
index 098bc38b..f8789248 100644
--- a/src/instances/get_instances.py
+++ b/src/instances/get_instances.py
@@ -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 = []