【发布时间】:2018-06-10 14:35:57
【问题描述】:
我想使用 Python 脚本从网站下载视频,但是,该视频由如下的 blob URL 提供。
<video class="jw-video jw-reset" style="object-fit: fill;" jw-loaded="data" src="blob:https://xxxxxxx.com/f717096e-5e1a-42e1-8c3c-3ec777b5d478"></video>
【问题讨论】:
-
您好,感谢您的评论。其实我的情况有点复杂。我首先使用 selenium 登录网站并获取 cookie,然后将会话 cookie 传递给 python。 def request(driver): s = requests.Session() cookies = driver.get_cookies() for cookie in cookies: s.cookies.set(cookie['name'], cookie['value']) return s req = request (浏览器)您能否详细说明一下如何在上述代码后保存视频?谢谢!
-
把所有有问题的信息。您还可以创建最小的工作示例。
-
这个问题相当不完整,可以改进。它可能以“不清楚”或“缺少minimal reproducible example”的形式关闭。
标签: python html video python-requests blob