测试代理地址网站: http://httpbin.org/ip
from selenium.webdriver.chrome.options import Optionsfrom selenium import webdriverchrome_options = Options()## 一定要注意,=两边不能有空格,不能是这样--proxy-server = http://202.20.16.82:10152chrome_options.add_argument("--proxy-server=http://117.191.11.102:80")driver = webdriver.Chrome(executable_path=r'.\chromedriver.exe', chrome_options=chrome_options)url='http://httpbin.org/ip'driver.get(url)返回自己代理的ip地址