0
我需要你的帮助,使用Tor Browser + Python Selenium在Windows上实现自动化。Python Selenium与Tor浏览器7.x的绑定
我使用硒3.4.3与Tor浏览器7.0.1,并且代码初始化TOR网络驱动程序如下
binary = FirefoxBinary(TOR_BINARY_PATH)
prof = FirefoxProfile(TOR_PROFILE_PATH)
prof.set_preference('network.proxy.type', 1)
prof.set_preference('network.proxy.socks_host', '127.0.0.1')
prof.set_preference('network.proxy.socks_port', 9150)
prof.update_preferences()
self.browser = webdriver.Firefox(firefox_profile=prof, firefox_binary=binary)
但是,我坚持错误“托尔未能启动”每次我运行脚本。