📅  最后修改于: 2022-03-11 15:00:04.438000             🧑  作者: Mango
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 >>")