youtube-dl

tips youtube-dl

Youtube-dl Fix

Corriger l'erreur HTTP Error 429:

Too Many Requests avec youtube-dl

HTTP Error 429

Too Many Requests 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 

 

Ensuite on rajoute un alias pour ce simplifié la life, on rajoute dans  .bashrc :

$ 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 le terminal :

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

 

Résultat:

 7Uexuyy_HL8: Downloading webpage
 7Uexuyy_HL8: Downloading video info webpage
 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)

 

Happy Download,

by 🅴🆁🆁🅴🆄🆁32