使用Python下载M3U8 JuicyCode

发布于 2025-01-18 07:18:58 字数 696 浏览 4 评论 0原文

我正在尝试在浏览器中下载播放视频,我可以使用硒来获得M3U8 URL。这些URL在开发人员工具中的“网络”选项卡中显示 -

“开发人员工具”

当我尝试访问浏览器中或通过python中的URL时,我找不到404或“ http.client.client.remotedisconconted:remote End toctedisconted:remote End nlot tocter noble offests nonlOts nonlOtse nOWNSE nowss nonlots wonsport nonlOtss nonlOtss nOwss nonders wonsped nonsw.但是该视频在浏览器中播放正常,以下部分开始下载 -

“正在下载的视频”

我如何下载视频?

I am trying to download the video playing in the browser, I am able to get the m3u8 url using selenium. These urls show in the network tab in developer tools -

Developer tools

When I try to access the url in the browser or via python I get 404 Not found or "http.client.RemoteDisconnected: Remote end closed connection without response" but the video plays fine in the browser and the following parts start getting downloaded -

Video being downloaded

How do I download the video?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文