📅  最后修改于: 2022-03-11 14:45:29.040000             🧑  作者: Mango
proxyList = [
'192.168.1.1:8080',
'192.168.1.4:8080',
'192.168.1.9:8080'
]
chromeOptions = webdriver.ChromeOptions()
chromeOptions.add_argument('--proxy-server={}'.format(random.choice(proxyList)))
driver = webdriver.Chrome(executable_path="chromedriver.exe", chrome_options=chromeOptions)