Skip to content

herrersystem/python-tor-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

#python-tor-exemple

Example of use Tor with Python 3 on Ubuntu

Installation required:

  • stem: sudo apt-get install python3-stem
  • socks: pip3 install PySocks
  • tor: sudo apt-get install tor

Configuration:

Create password for tor controller:

  • tor --hash-password my_password

Add hash password an add controller port in /etc/tor/torrc :

ControlPort 9051

HashedControlPassword 16:7F74432B0864F0E06004A63636E07F7

Python example

In this example, I use requests module for HTTP connection.

About

Use tor with Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages