python爬虫遇到https站点InsecureRequestWarning警告解决方案

加三行代码即可

from requests.packages.urllib3.exceptions import InsecureRequestWarning,InsecurePlatformWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
requests.packages.urllib3.disable_warnings(InsecurePlatformWarning)

 

以上。

相关文章:

  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2021-12-05
  • 2021-11-12
  • 2021-06-08
猜你喜欢
  • 2021-05-03
  • 2022-12-23
  • 2021-08-22
  • 2021-04-01
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
相关资源
相似解决方案