FirefoxProfile profile = new FirefoxProfile(profilePath) Note that although the code is in C# the same changes to the Tor browser and how it is launched should be applied. I managed to resolve this by updating to v9.5.1 and implementing the following changes: Where as the same code block works through Firefox and Firefox Nightly using the respective binaries.ĭo I need any additional settings? Can someone help me out? t_preference("_remote_dns", False)įirefox_options = webdriver.FirefoxOptions()įirefox_options.binary_location = r'C:\Users\username\Desktop\Tor Browser\Browser\firefox.exe'ĭriver = webdriver.Firefox(firefox_profile= profile, options = firefox_options, executable_path=r'C:\WebDrivers\geckodriver.exe') Profile = FirefoxProfile(r'C:\Users\username\Desktop\Tor Browser\Browser\TorBrowser\Data\Browser\fault') Torexe = os.popen(r'C:\Users\username\Desktop\Tor Browser\Browser\TorBrowser\Tor\tor.exe') But I'm facing an error as:Ĭode Block: from selenium import webdriverįrom _profile import FirefoxProfile I'm trying to initiate a tor browsing session through Tor Browser 9.5 which uses the default Firefox v68.9.0esr using GeckoDriver and Selenium through Python on a windows-10 system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |