直接学习:https://edu.csdn.net/course/play/24756/284652
设置代理:
设置代理通过’ChromeOptions’来设置,示例代码如下:
options = webdriver.ChromeOptions()
options.add_argument("--proxy-server=http://110.243.23.38:9999")
driver = webdriver.Chrome(executable_path= "F:\chromedriver_win32\chromedriver.exe",chrome_options=options)
driver.get("http://httpbin.org/ip")