mirror of
https://github.com/antitree/private-tor-network
synced 2024-11-16 12:13:59 +00:00
8 lines
248 B
Python
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))
|