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.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py
index 80dcc080..13eb80a8 100644
--- a/src/instances/get_instances.py
+++ b/src/instances/get_instances.py
@@ -189,6 +189,18 @@ for item in rJson:
 mightyList['rimgo'] = rimgoList
 print('fetched Rimgo')
 
+# Peertube
+r = requests.get(
+    'https://instances.joinpeertube.org/api/v1/instances?start=0&count=1045&sort=-createdAt')
+rJson = json.loads(r.text)
+
+myList = []
+for k in rJson['data']:
+    myList.append('https://'+k['host'])
+
+mightyList['peertube'] = myList
+print('fetched Peertube')
+
 
 # Writing to file
 json_object = json.dumps(mightyList, ensure_ascii=False, indent=2)