[問題] selenium搭配proxy報錯
如題
以下程式碼:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
chromeOptions = webdriver.ChromeOptions()
chromeOptions.add_argument('--proxy-server={0}'.format(proxies))
driver = webdriver.Chrome(executable_path=r'/Users/terry/chromedriver'
,chrome_options = chromeOptions)
driver.get("https://lazypenweb.wordpress.com")
proxies變數裡面存放的是我從免費代理網站的ip有確認是可以用的proxy
但瀏覽器就會報錯
ERR_NO_SUPPORTED_PROXIES
是我哪裡沒設定或寫錯了媽?已經好幾天了這問題都解決不了QQ
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 180.217.142.254
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1513182261.A.467.html
推
12/14 00:35,
8年前
, 1F
12/14 00:35, 1F
→
12/14 16:42,
8年前
, 2F
12/14 16:42, 2F