about summary refs log tree commit diff stats
path: root/src/instances/peertube.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/instances/peertube.py')
-rw-r--r--src/instances/peertube.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/instances/peertube.py b/src/instances/peertube.py
new file mode 100644
index 00000000..5815b0e6
--- /dev/null
+++ b/src/instances/peertube.py
@@ -0,0 +1,13 @@
+import requests
+import json
+from urllib.parse import urlparse
+
+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(k['host'])
+    
+print(myList)