Every time I want to run my Program Tor crashes. The Code has no errors. And the Paths are all correct. Here is my Code:
from selenium import webdriver
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
import os
torexe = os.popen(r'C:/Users/Seya Fässler/Desktop/Tor Browser/Browser/TorBrowser/Tor/tor.exe')
profile = FirefoxProfile(r'C:/Users/Seya Fässler/Desktop/Tor Browser/Browser/TorBrowser/Data/Browser/profile.default')
profile.set_preference('network.proxy.type', 1)
profile.set_preference('network.proxy.socks', '127.0.0.1')
profile.set_preference('network.proxy.socks_port', 9050)
profile.set_preference("network.proxy.socks_remote_dns", False)
profile.update_preferences()
firefox_options = webdriver.FirefoxOptions()
firefox_options.binary_location = r'C:/Users/Seya Fässler/Desktop/Tor Browser/Browser/firefox.exe'
driver = webdriver.Firefox(firefox_profile= profile, options = firefox_options, executable_path=r'C:/Users/Seya Fässler/Webdrivers/geckodriver.exe')
driver.get("https://www.apple.com")
After that, it shows up this Alert:
When I press OK it opens this window and I can't copy the log, because it has 0 lines.
I use Windows 10, as an environment I use anaconda, the tor browser is on the newest version (9.5.3) and I use Python 3.8.3. Please don't delete my question because of duplicates, the other question has an answer but only in C#, and it doesn't work with python! Thanks!