Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/359.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将Python seleniumwire与代理身份验证一起使用_Python_Selenium_Geckodriver_Seleniumwire - Fatal编程技术网

将Python seleniumwire与代理身份验证一起使用

将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:/

我正在尝试使用带有用户名和密码的代理身份验证访问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://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