当前位置:   article > 正文

Python 的 selenium 时,报如下错误SSL error code 1, net_error -101

ssl error code 1

今天使用 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

  1. # 忽略证书错误
  2. options.add_argument('--ignore-certificate-errors')
  3. # 忽略 Bluetooth: bluetooth_adapter_winrt.cc:1075 Getting Default Adapter failed. 错误
  4. options.add_experimental_option('excludeSwitches', ['enable-automation'])
  5. # 忽略 DevTools listening on ws://127.0.0.1... 提示
  6. options.add_experimental_option('excludeSwitches', ['enable-logging'])
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Li_阴宅/article/detail/824477
推荐阅读
相关标签
  

闽ICP备14008679号