about summary refs log tree commit diff stats
path: root/src/instances/peertube.py
blob: 5815b0e6cf0b8df65b7ba65d3bbf6a2350a2476d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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)