📌  相关文章
📜  selenium 代理 python chrome - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:29.040000             🧑  作者: Mango

代码示例1
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)