python-3.x - webdriver.Chrome(ChromeDriverManager().install(), options=options) 给出错误:SSLCertVerificationError
问题描述
我是 Selenium Python 的新手,我正在尝试执行以下操作,我收到错误为“requests.exceptions.SSLError: HTTPSConnectionPool(host='chromedriver.storage.googleapis.com', port=443): Max retries exceeded with url:/LATEST_RELEASE_93.0.4577(由 SSLError(SSLCertVerificationError(1,'[SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:无法获取本地颁发者证书(_ssl.c:1129)'))“请让我知道我该怎么做必须做些什么才能通过这个错误?
from webdriver_manager.chrome import ChromeDriverManager
options = webdriver.ChromeOptions()
options.headless = False
options.add_argument('--incognito')
options.add_argument('--allow-running-insecure-content')
options.add_argument('--ignore-certificate-errors')
webdriver.Chrome(ChromeDriverManager().install(), options=options)
driver = webdriver.Chrome()
解决方案
推荐阅读
- arrays - 字母矩阵中最长的连续路径
- html - 导航栏上方的 div 看起来不像预期的那样
- mysql - 需要加快 WHERE NOT EXISTS 查询
- javascript - D3.csv 读入 promise
- jquery - 如果元素的子元素为空,则将类添加到该元素的另一个子元素
- azure-functions - Cosmos DB changefeed 突然没有触发 Azure Function 触发器
- java - Avro 无法使用更新的架构反序列化消息
- javascript - 科尔多瓦 - 安卓。将文件写入普通用户可访问的目录
- java - 如何使用 IntStream 对 int 数组的特定索引数求和?
- jenkins - Jenkinsfile 访问 aws 凭据