Created
June 13, 2017 10:59
-
-
Save sigmapie8/1f15cf860d7568e5815b599b4b0d737c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from stem.process import launch_tor | |
def print_lines(line): | |
if('Bootstrapped' in line): | |
print(line) | |
tor = launch_tor(init_msg_handler = print_lines) | |
tor.terminate() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment