about summary refs log tree commit diff stats
path: root/src/instances/get_instances.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/instances/get_instances.py')
-rw-r--r--src/instances/get_instances.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py
index b6bba606..18870f32 100644
--- a/src/instances/get_instances.py
+++ b/src/instances/get_instances.py
@@ -239,6 +239,27 @@ def scribe():
     print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Scribe')
 
 
+def quetre():
+    r = requests.get(
+        'https://raw.githubusercontent.com/zyachel/quetre/main/README.md')
+    _list = {}
+    _list['normal'] = []
+    _list['tor'] = []
+
+    tmp = re.findall(
+        r"\| \[.*\]\(([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}.*\|.*\|", r.text)
+
+    tmp = filterLastSlash(tmp)
+
+    for item in tmp:
+        if item.endswith('.onion'):
+            _list['tor'].append(item)
+        else:
+            _list['normal'].append(item)
+    mightyList['quetre'] = _list
+    print(Fore.GREEN + 'Fetched ' + Style.RESET_ALL + 'Quetre')
+
+
 def simplytranslate():
     r = requests.get('https://simple-web.org/instances/simplytranslate')
     simplyTranslateList = {}
@@ -370,6 +391,7 @@ libreddit()
 teddit()
 wikiless()
 scribe()
+quetre()
 simplytranslate()
 linvgatranslate()
 searx_searxng()