Youtube-dl Error: YouTube said: Unable to extract video data (Fixed)

最近Youtube-dl更新不及时,问题很多,yt-dlp代替,这里是关于yt-dlp的介绍和一些常用实例:

Downloading YouTube videos and playlists with yt-dlp (Some common usage examples)


前几天,我用Youtube-dl下载youtube的视频时不成功并,提示了如下的错误:

WARNING: unable to download video info webpage: HTTP Error 410: Gone
WARNING: unable to download video info webpage: HTTP Error 410: Gone
WARNING: unable to download video info webpage: HTTP Error 410: Gone
WARNING: unable to download video info webpage: HTTP Error 410: Gone
ERROR: n3kNlFMXslo: YouTube said: Unable to extract video data

我通过终端工作执行了以下代码:

$ youtube-dl https://www.youtube.com/watch?v=wawbhXQX2TQ --proxy https://127.0.0.1:1081 --no-check-certificate

我的系统是MacOS Big Sur (11.2.3),很长时间没用了,首先想到的是youtube-dl是否需要更新了呢?

$youtube-dl --update
It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update.

更新不成功,同时给出了不成功原因。

$ pip install -U youtube-dl
...
...
...
Successfully installed youtube-dl-2021.6.6

成功更新至youtube-dl-2021.6.6,再次执行下载命令:

$ youtube-dl --format mp4 https://www.youtube.com/watch?v=wawbhXQX2TQ --proxy https://127.0.0.1:1081 --no-check-certificate

下载成功。


关于Youtube-DL更新的几个途径(根据您的安装方式,以下是命令):

  • youtube-dl --update (self-update)
  • pip install -U youtube-dl (via python)
  • brew upgrade youtube-dl (macOS + homebrew)
  • choco upgrade youtube-dl (Windows + Chocolatey)

其他与Youtube-DL相关的文章

Downloading Age Restricted Videos With Youtube-DL

Youtube-dl Tutorial With Examples For Beginners


发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据