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:~# 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.
  • 1
    I have version 2015.07.04. Maybe you need to uninstall your olde version and update from http://rg3.github.io/youtube-dl because the one in the repo is old. – DK Bose Jul 7 '15 at 6:33
  • 1
    Please read the message and act on it: Downloading webpage ERROR: Unable to download webpage: HTTP Error 429: Too Many Requests (caused by HTTPError()); please report this issue on yt-dl.org/bug This is NOT an Ubuntu related problem; it is an issue with that website. – Rinzwind Jul 7 '15 at 6:33

Your problem is almost certainly because you're running an older version of youtube-dl.

You should uninstall the apt version with

apt-get purge youtube-dl

and then install it with pip instead.

pip3 install youtube-dl

If you don't have pip3, you can install it with,

apt-get install python3-pip

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.

  • it's not working. – Virtual Travels Jul 21 '15 at 9:20
  • @VirtualTravels Do you still have the same error? Has anything changed since the last time? – Kasisnu Jul 21 '15 at 9:34
  • no. it's the same error. – Virtual Travels Jul 23 '15 at 6:53
  • @VirtualTravels Can you add the output of which youtube-dl and youtube-dl --version to your question? – Kasisnu Jul 27 '15 at 5:34
  • it's the same error. – Virtual Travels Jul 27 '15 at 14:07

Generally, 429 means that you may have downloaded too much. Practically, this is very common problem running youtube-dl on OVH/AWS/etc. You may want to workaround this by using --proxy or --source-address (see youtube-dl FAQ). You may also want to read this thread.

  • Ah, you might be right about that. – Kasisnu Jul 8 '15 at 16:32

You can try adding '-4' or '-6' flags for forcing the download over IPv4 and IPv6 respectively. The video you were trying to download is unavailable now but the following command works for me :

youtube-dl -4 https://www.youtube.com/watch?v=sJFgo9H6zNo

You can refer this thread for more information.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.