📜  selenium 面试问题 2019 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:04.438000             🧑  作者: Mango

代码示例6
from selenium import webdriver

PROXY = "10.0.0.10:8080" # IP:PORT or HOST:PORT

chrome_opt = webdriver.ChromeOptions()
chrome_opt.add_argument('--proxy-server=%s' % PROXY)

chrome = webdriver.Chrome(options=chrome_opt)
chrome.get("<< target URL >>")