10
[youtube] lMttqRuFmL8: 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 complete output.
muru
  • 197,895
  • 55
  • 485
  • 740

6 Answers6

12

Using --cookies works for me.

Install the cookies.txt addon on Firefox. Export cookie.

$ youtube-dl --cookies cookies.txt www.youtube.com/watch?v=..
Simon Sudler
  • 3,931
  • 3
  • 21
  • 34
deebraj
  • 121
9

In this issue, @dstftw explains that all IPv6 addresses get banned by YouTube.

https://github.com/ytdl-org/youtube-dl/issues/21729

So, --force-ipv4 should help. If it doesn't, the another workaround could be attaching a cookie from your browser with --cookies option.

3

Perhaps you are actually sending too many request at the given time.

The status code 429 refers to TooManyRequest. In the real scenario you are sending more than expected requests on that site.

You could try later or change your IP using a proxy or VPN.

1

Try updating youtube-dl to the latest version.

youtube-dl -U 

if installed via PIP

pip install --upgrade youtube-dl
1

this is mentioned in the FAQ official docs in detailed explanation

just pass cookies,

the command line should be something similar to this

youtube-dl -F --cookies=cookies.txt VIDEOURL

this solved the problem for me.

Yousef Saber
  • 207
  • 3
  • 10
0

I found a new way to solve this. I don't know if it is also useful for you. Video url is like https://www.youtube.com/watch?v=videoAddress&list=listAddress Change the url to www.youtube.com/watch?v=videoaddress

The whole command is youtube-dl --proxy 127.0.0.1:1080 "www.youtube.com/watch?v=videoAddress" --force-ipv4 --no-check-certificate