I am unable to download videos from Youtube using youtube-dl
. Below is the code. Please help!
root@itzamlan10:~# sudo apt-get install youtube-dl
Reading package lists... Done
Building dependency tree
Reading state information... Done
youtube-dl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 82 not upgraded.
root@itzamlan10:~#
root@itzamlan10:~# youtube-dl https://www.youtube.com/watch?v=2wNvUHBVw5U
[youtube] 2wNvUHBVw5U: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by HTTPError()); please report this issue on https://yt-dl.org/bug .
Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its com
plete output.
Best Answer
Your problem is almost certainly because you're running an older version of
youtube-dl
.You should uninstall the apt version with
and then install it with pip instead.
If you don't have pip3, you can install it with,
or see this for more help on that.
The
youtube-dl
package in the apt repo for jessie(and maybe even trusty) hasn't been updated in almost a year.