Skip to content

naranjja/seleniumTor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✅ seleniumTor

Use Python Selenium through Tor

Requirements

Instructions

  1. Run pip install -r requirements.txt
  2. Open path.txt and write absolute path to Tor Browser folder using single backslashes (\)
  3. Open router.py and write Selenium code within main() function
  4. Run router.py!

Custom settings

  • The setup_tor() function contains the profile preferences for the Tor session. Modify these settings if necessary. They are implemented to ensure anonymity and default configuration changes.
  • However, if SOCKS port has changed for some reason (typically to 9151), here is where you would modify the port.
  • If some webpages are displaying improperly, this may be due to JavaScript being toggled off. Simply change javascript.enabled to True. Note that this may compromise anonymity.
  • If initializing Tor takes longer than Selenium, pass a delay time (in seconds) as a second parameter to the setup_tor function (eg. setup_tor(binary, 10))

About

Use Python Selenium through Tor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published