about summary refs log tree commit diff stats
path: root/src/instances/peertube.py
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-03-12 03:18:56 +0300
committerManeraKai <manerakai@protonmail.com>2022-03-12 03:18:56 +0300
commitd4305d260424761d67bf2c10307ef5f97a9d1f72 (patch)
tree0716991540f37fe51103d866b994a901c5d56134 /src/instances/peertube.py
parentRemoved buff.js. Idk where it came from. I may've saved it accidently. (diff)
downloadlibredirect-d4305d260424761d67bf2c10307ef5f97a9d1f72.zip
Python script fetching peertube instances #78. Trying Whoogle initCookies #80
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)