proxytools

- collection of scripts for harvesting & testing proxies
git clone git://git.acid.vegas/proxytools.git
Log | Files | Refs | Archive | README | LICENSE

onionglass.py (290B)

      1 import urllib.request
      2 import json
      3 
      4 https://metrics.torproject.org/onionoo.html#details
      5 
      6 response = urllib.request.urlopen('https://onionoo.torproject.org/details')
      7 data = json.loads(response.read())
      8 
      9 
     10 for item in data['relays']:
     11     print(item)
     12 
     13 for item in data['bridges']:
     14     print(item)