Skip to content

Create multiple Firefox browser with Selenium that each runs through a separate Tor proxy.

Notifications You must be signed in to change notification settings

dahlo/TorSelenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

TorSelenium

Create multiple Firefox browser with Selenium that each runs through a separate Tor proxy. This class will spawn the specified number of Tor proxies and create a Selenium Firefox browers that runs through each of the proxies, giving them all separate IPs.

Requirements (Ubuntu 14.04)

sudo apt-get install python-dev python-pip tor
sudo pip install selenium psutil

Example

#!/bin/env python
from TorSelenium import TorSelenium

# create TorSelenium object
test = TorSelenium()

# create browsers
test.create_tor_browsers(3)

# get IP of each browser
for browser in test.browsers:
	browser.get("http://myexternalip.com/raw")

# kill running proxies
test.kill_running_proxies()

About

Create multiple Firefox browser with Selenium that each runs through a separate Tor proxy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages