From d4305d260424761d67bf2c10307ef5f97a9d1f72 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sat, 12 Mar 2022 03:18:56 +0300 Subject: Python script fetching peertube instances #78. Trying Whoogle initCookies #80 --- src/instances/peertube.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/instances/peertube.py (limited to 'src/instances/peertube.py') 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) -- cgit 1.4.1