mirror of
https://github.com/antitree/private-tor-network
synced 2024-11-16 20:22:41 +00:00
10 lines
294 B
Python
10 lines
294 B
Python
|
from stem.descriptor import parse_file
|
||
|
import sys
|
||
|
|
||
|
try:
|
||
|
path = sys.argv[1]
|
||
|
for desc in parse_file(path):
|
||
|
print('found relay %s (%s)' % (desc.nickname, desc.fingerprint))
|
||
|
except IOError:
|
||
|
print("File not found. make sure you supply it with a cached consensus file location: %s" % path)
|