首页 > 编程语言 >Python driver 设置

Python driver 设置

时间:2022-11-08 17:46:33浏览次数:50  
标签:option Python driver add 设置 options experimental

options = webdriver.ChromeOptions()
# 不加载图片,加快访问速度
options.add_experimental_option("prefs", {"profile.managed_default_content_settings.images": 2})
# 设置为开发者模式,避免被识别
options.add_experimental_option('excludeSwitches',['enable-automation'])
options.add_experimental_option('useAutomationExtension', False)
#避开滑块
options.add_argument("--disable-blink-features=AutomationControlled")
driver = webdriver.Chrome(executable_path='C:/Python36/chromedriver.exe', options=options)

标签:option,Python,driver,add,设置,options,experimental
From: https://www.cnblogs.com/shaosks/p/16870544.html

相关文章