[tor-relays] Script to get top relays, AS and countries weights
    delber 
    delber at riseup.net
       
    Thu Jul 12 09:24:51 UTC 2012
    
    
  
Hi!
Attached is a pretty simple Python script to compute some statistics
about relays. Here's the doc:
    Usage: tor-relays-stats.py <output> [args ...]
    Where <output> is one of:
     - countries [FLAGS]
       relative percentage of the consensus in each countries
     - as-sets [FLAGS] [COUNTRIES]
       relative percentage of the consensus in each AS sets
     - top [COUNT] [FLAGS] [COUNTRIES]
       top relays according their place in the whole consensus
    Examples:
     - To get the top five exit nodes in France:
       tor-relays-stats.py top 5 Exit fr
     - To get weights of each AS of all relays in Germany:
       tor-relays-stats.py as-sets Running de
Maybe it has flaws. Maybe it should land in some Git repository. I just
felt it might be of interest to other folks. Feel free to comment and
hack.
-- 
delber
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tor-relays-stats.py
Type: text/x-python
Size: 4259 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-relays/attachments/20120712/7400e4aa/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-relays/attachments/20120712/7400e4aa/attachment-0001.pgp>
    
    
More information about the tor-relays
mailing list