設置下載目錄:
from?selenium?import?webdriverchromedriver?=?"/usr/bin/chromedriver"
chromeOptions?=?webdriver.ChromeOptions()
prefs?=?{"download.default_directory":?"/path/download"}
chromeOptions.add_experimental_option("prefs",?prefs)
driver?=?webdriver.Chrome(executable_path=chromedriver,?chrome_options=chromeOptions)
設置代理:
from?selenium?import?webdriverPROXY?=?"23.23.23.23:3128"?#?IP:PORT?or?HOST:PORT
chrome_options?=?webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=")
IE的也差不多。
如果解決了您的問題請采納!
如果未解決請繼續追問