private-tor-network/util/get_consensus.py
2016-07-03 11:09:07 -04:00

8 lines
248 B
Python

from stem.control import Controller
with Controller.from_port(port = 9051) as controller:
controller.authenticate("password")
for desc in controller.get_network_statuses():
print("found relay %s (%s)" % (desc.nickname, desc.fingerprint))