options = webdriver.ChromeOptions()标签:option,Python,driver,add,设置,options,experimental From: https://www.cnblogs.com/shaosks/p/16870544.html
# 不加载图片,加快访问速度
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)