Skip to content

ashtianicode/python-tor-selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-tor-selenium

here you can find some code for using python and selenium with tor connection. it can be used for changing ip while you are testing something using chromedriver for example.

if you are on mac :
brew install tor
vi /usr/local/etc/tor/torrc commentout #ControlPort 9051
brew install polipo it is used for routing tor socks proxy to http proxy so it can be used by chromedriver

polipo socksParentProxy=localhost:9050 execute polipo so it listens to tor's 9050 port and establishes listening socket on port 8123.
tor execute tor
now you can add proxy to your chrome driver and enjoy !

if you are on ubuntu : you can use privoxy instead of polopo the port is 8118

About

some code for using python urllib or selenium using chrome driver , tor and polipo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages