Exiaoxiao 2020-05-13 12:13 采纳率: 0%
浏览 501

python requests https报错解决

用python requests库去下载https的m3u8视频资源时出现报错

file_url = os.path.split(url)[0] + "/" + file_list[i]
            save_path = item_path + "/" + file_list[i]
            file_res = requests.get(file_url, proxies=proxies)
            if file_res.status_code == 200:
                with open(save_path, "wb") as file1:
                    file1.write(file_res.content)
requests.exceptions.SSLError: HTTPSConnectionPool(host='godsold.com', port=443): Max retries exceeded with url: .............ts (Caused by SSLError(SSLError("bad handshake: SysCallError(10053, 'WSAECONNABORTED')")))

试过网上那些verify=false还是出现这种情况。有谁遇到过这种情况的能给解答一下吗?

  • 写回答

1条回答 默认 最新

  • 吃鸡王者 2020-05-13 15:03
    关注

    把url打印一下,看看对不对?

    评论

报告相同问题?

悬赏问题

  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 关于#python#的问题:自动化测试