from selenium import webdriver
import os
chromedriver = 'C:\\Users\\bxm\AppData\Local\Programs\Python\Python36\chromedriver.exe'
chome_options = webdriver.ChromeOptions()
chome_options.add_argument('--proxy-server=http://110.72.42.105:8123')
os.environ["webdriver.chrome.driver"] = chromedriver
driver = webdriver.Chrome(chromedriver,chrome_options=chome_options)
driver.get('http://httpbin.org/ip')
转载于:https://www.cnblogs.com/chukun/p/8423370.html