今天使用 Python 的 selenium 时,一直在报如下错误:
[156424:153348:1212/170007.899:ERROR:ssl_client_socket_impl.cc(978)] handshake failed; returned -1, SSL error code 1, net_error -101
# 忽略证书错误
options.add_argument('--ignore-certificate-errors')
# 忽略 Bluetooth: bluetooth_adapter_winrt.cc:1075 Getting Default Adapter failed. 错误
options.add_experimental_option('excludeSwitches', ['enable-automation'])
# 忽略 DevTools listening on ws://127.0.0.1... 提示
options.add_experimental_option('excludeSwitches', ['enable-logging'])
文章讲述了在使用Python的Selenium库时遇到的SSL连接错误,以及尝试通过添加参数`--ignore-certificate-errors`、`excludeSwitches`来忽略特定问题,如蓝牙适配器错误和DevTools日志提示。
1837

被折叠的 条评论
为什么被折叠?



