Is it possible to see the list of servers that your instance knows about? That would be helpful. It would also help if the list of servers blocked by your instance were publicly available. #federation #mastodon #open-federation
@pee_zombie Gee, numerous instances:
#!/usr/bin/env python3
import ast
import requests
from sortedcontainers import SortedSet
def getPeerSet(url:str) -> SortedSet:
r = requests.get(url)
return SortedSet( ast.literal_eval( r.text ) )
instance = ['mastodon.radio', 'schelling.pt', 'mathstodon.xyz', 'mastodon.social']
peers = SortedSet()
for inst in instance:
url = 'https://' + inst + '/api/v1/instance/peers'
peers = peers.union( getPeerSet( url ) )
for elt in peers:
print(elt)
@pee_zombie $ wc -l mastolist.log
53992 mastolist.log