我正在使用selenium-wire Version: 4.3.1
库进行代理身份验证
我有以下错误(在库的源代码中):
Traceback (most recent call last):
File "/home/alex/root_folder/projects/12_fb_parser_selenium/followers_repo/facebook-subscribers-anton/venv/lib/python3.8/site-packages/seleniumwire/thirdparty/mitmproxy/addonmanager.py", line 41, in safecall
yield
File "/home/alex/root_folder/projects/12_fb_parser_selenium/followers_repo/facebook-subscribers-anton/venv/lib/python3.8/site-packages/seleniumwire/thirdparty/mitmproxy/addonmanager.py", line 256, in trigger
self.invoke_addon(i, name, *args, **kwargs)
File "/home/alex/root_folder/projects/12_fb_parser_selenium/followers_repo/facebook-subscribers-anton/venv/lib/python3.8/site-packages/seleniumwire/thirdparty/mitmproxy/addonmanager.py", line 237, in invoke_addon
func(*args, **kwargs)
File "/home/alex/root_folder/projects/12_fb_parser_selenium/followers_repo/facebook-subscribers-anton/venv/lib/python3.8/site-packages/seleniumwire/thirdparty/mitmproxy/addons/upstream_auth.py", line 62, in configure
if ctx.options.upstream_auth is None:
File "/home/alex/root_folder/projects/12_fb_parser_selenium/followers_repo/facebook-subscribers-anton/venv/lib/python3.8/site-packages/seleniumwire/thirdparty/mitmproxy/optmanager.py", line 170, in __getattr__
raise AttributeError("No such option: %s" % attr)
AttributeError: No such option: upstream_auth
在我的代码中,我仅使用 seleniumwire 进行身份验证,例如
from seleniumwire import webdriver
options = {
'proxy': {
'http': 'https://xxx:xxxx@ip:port',
'https': 'https://xxx:xxxxx@ip:port',
'no_proxy': 'localhost,127.0.0.1'
}
}
driver = webdriver.Chrome(seleniumwire_options=options)