代码如下:
chromeOptions = webdriver.ChromeOptions()
chromeOptions.add_argument("--proxy-server=http://163.125.6.42:40004")
wd = webdriver.Chrome(service=Service('chromedriver.exe'), chrome_options=chromeOptions)
wd.get('http://myip.ipip.net')
input("")
代码如下:
chromeOptions = webdriver.ChromeOptions()
chromeOptions.add_argument("--proxy-server=http://163.125.6.42:40004")
wd = webdriver.Chrome(service=Service('chromedriver.exe'), chrome_options=chromeOptions)
wd.get('http://myip.ipip.net')
input("")