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.
3
  • What OS/release are you using? (that is a 'universe' or community package, so is no longer supported for 16.04 LTS for example, so issues with 16.04 should be expected).
    – guiverc
    Mar 26, 2020 at 1:54
  • ubuntu 18.04 LTS Mar 26, 2020 at 2:11
  • @TonmoyAhmed Latest version should report: 2020.03.24. If this is ok try altering your command line to: youtube-dl -4 URL Mar 26, 2020 at 3:46

6 Answers 6

11

Using --cookies works for me.

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

$ youtube-dl --cookies cookies.txt www.youtube.com/watch?v=..
1
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.

2
  • 1
    --force-ipv4 works for me, thank you Oct 7, 2020 at 20:43
  • I solve it by using --force-ipv6
    – Salem F
    Nov 24, 2020 at 23:24
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
  • 2
    What worked for me was to disconnect the VPN and to add --force-ipv4 to the arguments.
    – Eric Aya
    Aug 16, 2020 at 11:48
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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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