diff options
author | ManeraKai <manerakai@protonmail.com> | 2022-03-12 03:18:56 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2022-03-12 03:18:56 +0300 |
commit | d4305d260424761d67bf2c10307ef5f97a9d1f72 (patch) | |
tree | 0716991540f37fe51103d866b994a901c5d56134 /src/instances/peertube.py | |
parent | Removed buff.js. Idk where it came from. I may've saved it accidently. (diff) | |
download | libredirect-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.py | 13 |
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) |