将Python seleniumwire与代理身份验证一起使用
我正在尝试使用带有用户名和密码的代理身份验证访问url 我发现一个使用代理身份验证的包:将Python seleniumwire与代理身份验证一起使用,python,selenium,geckodriver,seleniumwire,Python,Selenium,Geckodriver,Seleniumwire,我正在尝试使用带有用户名和密码的代理身份验证访问url 我发现一个使用代理身份验证的包: 硒导线接通 我已经编写了以下代码 from seleniumwire import webdriver df_proxies=WebShare_Proxies() args=df_proxies.values[random.choice(df_proxies.index)].tolist() proxy_ip,proxy_port,username,password=args url='https:/
硒导线
接通
我已经编写了以下代码
from seleniumwire import webdriver
df_proxies=WebShare_Proxies()
args=df_proxies.values[random.choice(df_proxies.index)].tolist()
proxy_ip,proxy_port,username,password=args
url='https://fra.privateinternetaccess.com/pages/whats-my-ip/'
proxyString=username+":"+password+"@"+str(proxy_ip)+":"+str(proxy_port)
options = {
'proxy': {
'http': 'http://'+proxyString,
'https': 'https://'+proxyString,
'no_proxy': 'localhost,127.0.0.1'
}
}
driver = webdriver.Firefox(seleniumwire_options=options)
WebShare\u Proxies()
调用API以获取我的代理列表
我的代理使用用户名和密码进行身份验证
proxyString
'$myusername:$mypassword@45.95.96.187:8746'
调用webdriver.Firefox(seleniumwire\u options=options)时出现以下错误
有人知道如何克服这个错误吗
谢谢你的考虑
...in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: invalid argument: can't kill an exited process