pythonselenium怎么配置IE和chrome的代理
导读:pythonselenium怎么配置IE和chrome的代理?fromseleniumimportwebdriverimportos,timechromedriver=os.getcwd( +'\\chromedriver.exe'os.e...
pythonselenium怎么配置IE和chrome的代理?
fromseleniumimportwebdriverimportos,timechromedriver=os.getcwd()+'\\chromedriver.exe'os.environ['webdriver.Chrome.driver']=chromedriverchrome_options=webdriver.ChromeOptions()chrome_options.add_argument('--proxy-server=211.147.240.86:808')driver=webdriver.Chrome(chromedriver,chrome_options=chrome_options)
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: pythonselenium怎么配置IE和chrome的代理
本文地址: https://pptw.com/jishu/57693.html
