如何使用Python下载嵌入式视频

2024-10-02 16:24:18 发布

您现在位置:Python中文网/ 问答频道 /正文

我以这个链接为例:https://www.dailymotion.com/video/x7ylio6?playlist=x6lgtp 我一直在阅读其他堆栈溢出问题并收集以下代码:

nam = sg.popup_get_text('Enter name', no_titlebar=True)
                nam = nam+'.mp4'
                st = urllib.request.urlretrieve(Ur, nam)

然而,这只会在下载视频时提供页面的HTML,而不是DailyMotion特有的。有什么想法吗

Is there a way to download a video from a webpage with python?

Web Scraping Videos


Tags: 代码httpscomget堆栈链接wwwvideo