# 设置option选项
options = webdriver.ChromeOptions()
options.add_argument('proxy-server=http://123.163.27.90:9999')

driver_path = r"D:\Google\Chrome\Application\chromedriver.exe"
driver = webdriver.Chrome(executable_path=driver_path, chrome_options=options)
driver.get('http://httpbin.org/ip')
Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐