解决访问Https时不受信任SSL证书问题
options = webdriver.ChromeOptions()
options.add_argument(“service_args=[’–ignore-ssl-errors=true’, ‘–ssl-protocol=TLSv1’]”) # Python2/3
options.add_experimental_option(‘excludeSwitches’, [‘enable-automation’])
driver = webdriver.Chrome(executable_path=CURRPATH + “chromedriver.exe”, chrome_options=options)
driver.maximize_window()
——————————————————————————————————————————————
微信关注号:python爬虫机器学习深度学习