from selenium import webdriver
proxy = '117.36.103.170:8118'
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=http://' + proxy)
chrome = webdriver.Firefox(chrome_options=chrome_options)
chrome.get('http://httpbin.org/get')
我参照上面的 Chrome 的配置方法,修改成以下的 Firefox 配置,为何没有成功?是不是哪里错了?求解答
from selenium import webdriver
proxy = '117.36.103.170:8118'
firefox_options = webdriver.FirefoxOptions()
firefox_options.add_argument('--proxy-server=http://' + proxy)
firefox = webdriver.Firefox(firefox_options=firefox_options)
firefox.get('http://httpbin.org/get')
1
omph 2018-07-07 23:03:25 +08:00
|
3
XiiLii OP Python | Firefox IP 代理 - 灵魂的文章 - 知乎
https://zhuanlan.zhihu.com/p/39281522 |