[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.
6 Answers
Using --cookies
works for me.
Install the cookies.txt
addon on Firefox. Export cookie.
$ youtube-dl --cookies cookies.txt www.youtube.com/watch?v=..
-
1Amazing! Chrome/Opera users can get the "Get cookies.txt" extension on the Chrome Web Store. Nov 22, 2020 at 20:02
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.
-
1
-
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.
-
2What worked for me was to disconnect the VPN and to add
--force-ipv4
to the arguments.– Eric AyaAug 16, 2020 at 11:48
Try updating youtube-dl to the latest version.
youtube-dl -U
if installed via PIP
pip install --upgrade youtube-dl
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.
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
2020.03.24
. If this is ok try altering your command line to:youtube-dl -4 URL