参考网友解决的方法

任何报SSLError类的错,解决方法:

引入ssl模块

import ssl

在url链接代码上方添加语句:

ssl._create_default_https_context = ssl._create_unverified_context

url = "https://tieba.baidu.com"

来源于 https://www.jianshu.com/p/b6b85e53d2e1

相关文章:

  • 2022-03-03
  • 2021-12-08
  • 2021-11-30
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
猜你喜欢
  • 2021-04-29
  • 2022-02-21
  • 2021-12-07
  • 2021-08-23
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案