我正在尝试在 ubuntu 上使用带有 selenium 和 python 的 Tor 浏览器。浏览器正在打开但显示代理错误。这是我正在尝试的代码:
from time import sleep
from tbselenium.tbdriver import TorBrowserDriver
driver = TorBrowserDriver("/tor/tor-browser-linux32-8.0.3_en-US/tor-browser_en-US/")
driver.get('https://www.whatismyip.com/')
终端中的异常是-
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Reached error page: about:neterror?e=proxyConnectFailure&u=https%3A//www.whatismyip.com/&c=UTF-8&f=regular&d=Firefox%20is%20configured%20to%20use%20a%20proxy%20server%20that%20is%20refusing%20connections.
Tor 浏览器上显示的消息是: https ://pasteboard.co/HKYjivJ.png