4 This script extract some statistics about relays using aggregate data
5 based on the current consensus.
10 Run the script with --help to learn about its usage:
12 ./tor-relays-stats.py -h
16 - To get the top five exit nodes in France:
17 ./tor-relays-stats.py --top=5 --exits-only --country=fr
18 - To get weights of the top ten AS of all relays in Germany:
19 ./tor-relays-stats.py --top=10 --by-as --country=de
24 This script expect to have a file called 'details.json' in the
25 current directory. Run with the --download option or issue the following
26 command to obtain that file:
28 curl -o details.json 'https://onionoo.torproject.org/details?type=relay&running=true'
33 Written and tested on Python 2.6.6.
38 * delber <delber@riseup.net>
39 * Karsten Loesing <karsten@torproject.org>
44 This program is free software. It comes without any warranty, to
45 the extent permitted by applicable law. You can redistribute it
46 and/or modify it under the terms of the Do What The Fuck You Want
47 To Public License, Version 2, as published by Sam Hocevar. See
48 http://sam.zoy.org/wtfpl/COPYING for more details.