Corriger l'erreur HTTP Error 429: Too Many Requests avec youtube-dl

Si vous avez cette erreur avec youtube-dl


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.

Il suffit simplement de de rajouter l'option --force-ipv4 dans votre commandeย :

youtube-dl  -o "%(title)s.%(ext)s" --force-ipv4 

Pour crรฉe un alias allez dans votre .bashrc et rajouterย :


alias ytdl='youtube-dl  -o "%(title)s.%(ext)s" --extract-audio --audio-format mp3 -k --force-ipv4 $1'
alias ytdlV='youtube-dl  -o "%(title)s.%(ext)s" --force-ipv4 $1'

La premiรจre ligne download et garde la vidรจo et le mp3.
La seconde ligne download et garde que la vidรฉo.

Plus qu'a taper dans votre terminalย :

ytdlV https://www.youtube.com/watch?v=7Uexuyy_HL8

rรฉsultat:

[youtube] 7Uexuyy_HL8: Downloading webpage
[youtube] 7Uexuyy_HL8: Downloading video info webpage
[youtube] 7Uexuyy_HL8: Extracting video information
[download] Destination: Stupeflip - The Antidote.f248.webm
[download] 100% of 1.50MiB in 00:00
[download] Destination: Stupeflip - The Antidote.f251.webm
[download] 100% of 3.24MiB in 00:00
[ffmpeg] Merging formats into "Stupeflip - The Antidote.webm"
Deleting original file Stupeflip - The Antidote.f248.webm (pass -k to keep)
Deleting original file Stupeflip - The Antidote.f251.webm (pass -k to keep)

by ๐Ÿ…ด๐Ÿ†๐Ÿ†๐Ÿ…ด๐Ÿ†„๐Ÿ†32
Hosted on

๐Ÿ…ด๐Ÿ…ฒ๐Ÿ…ท๐Ÿ”ต๐Ÿ†‚๐Ÿ†ˆ๐Ÿ†‚๐Ÿ†ƒ๐Ÿ…ด๐Ÿ…ผ