0

There are a little informatin on the web, and most of them are out of date Is there any body know, how can we do request with Tor browser on windows platform or selenium with TOR? all other answers from stackowerflow are not working..it is time to update answer Regards..

1 Answers1

1

A working example with Selenium and Tor on windows :

from selenium import webdriver
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary

binary = FirefoxBinary(r"..\..\..\firefox.exe")
profile = FirefoxProfile(r"..\..\..\TorBrowser\Browser\TorBrowser\Data\Browser\profile.default")

driver = webdriver.Firefox(profile, binary)
driver.get("http://www.google.com")
driver.quit()
stacktome
  • 790
  • 2
  • 9
  • 32