展开全部
设置下载目录:from selenium import webdriver
chromedriver = "/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 webdriver
PROXY = "23.23.23.23:3128" # IP:PORT or HOST:PORT
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=http://%s' % PROXY)
chrome = webdriver.Chrome(chrome_options=chrome_options)
chrome.get("http://whatismyipaddress.com")
IE的也差不多。
如果解决了您的问题请采纳!
如果未解决请继续追问32313133353236313431303231363533e58685e5aeb931333337376434