aboutsummaryrefslogtreecommitdiffstats
path: root/src/instances
diff options
context:
space:
mode:
authorBobIsMyManager <ahoumatt@yahoo.com>2022-04-10 20:15:12 +0000
committerGitHub <noreply@github.com>2022-04-10 23:15:12 +0300
commit3c2a32015b9e56a0fe4924a8d2af1bd79356689a (patch)
treef38cade89095ce4e313bf7038a09b00b3b8b4dff /src/instances
parentFixed typo in get_instances.py. Fixed settings page width #163 (diff)
downloadlibredirect-3c2a32015b9e56a0fe4924a8d2af1bd79356689a.zip
auto fetch proxitok instances (#185)
Diffstat (limited to 'src/instances')
-rw-r--r--src/instances/data.json14
-rw-r--r--src/instances/get_instances.py12
2 files changed, 26 insertions, 0 deletions
diff --git a/src/instances/data.json b/src/instances/data.json
index 9aa6b211..c189a898 100644
--- a/src/instances/data.json
+++ b/src/instances/data.json
@@ -33,6 +33,12 @@
"http://2rorw2w54tr7jkasn53l5swbjnbvz3ubebhswscnc54yac6gmkxaeeqd.onion"
]
},
+ "proxiTok": {
+ "normal": [
+ "https://proxitok.herokuapp.com"
+ ],
+ "tor": []
+ },
"send": {
"normal": [
"https://send.vis.ee",
@@ -457,6 +463,14 @@
]
},
"peertube": [
+ "https://vid.twhtv.club",
+ "https://video.retroedge.tech",
+ "https://truvitv.com",
+ "https://mooretube.com",
+ "https://tube.itsg.host",
+ "https://pt.ilyamikcoder.com",
+ "https://peertube.sensin.eu",
+ "https://watch.riverside.rocks",
"https://peer.galaxycrow.de",
"https://sharetube.us",
"https://dalek.zone",
diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py
index af52f41b..0d4c9a67 100644
--- a/src/instances/get_instances.py
+++ b/src/instances/get_instances.py
@@ -34,6 +34,18 @@ for instance in rJson:
mightyList['invidious'] = invidiousList
print(Fore.GREEN + 'fetched ' + Style.RESET_ALL + 'Invidious')
+# ProxiTok
+r = requests.get('https://raw.githubusercontent.com/wiki/pablouser1/ProxiTok/Public-instances.md')
+
+tmp = re.findall(
+ r"\| \[.*\]\(([-a-zA-Z0-9@:%_\+.~#?&//=]{2,}\.[a-z]{2,}\b(?:\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?)\)*\|*[A-Z]{0,}.*\|.*\|", r.text)
+proxiTokList = {}
+proxiTokList['normal'] = []
+proxiTokList['tor'] = []
+for item in tmp:
+ proxiTokList['normal'].append(item)
+mightyList['proxiTok'] = proxiTokList
+print('fetched ProxiTok')
# Send
r = requests.get('https://gitlab.com/timvisee/send-instances/-/raw/master/README.md')