Skip to content

Instantly share code, notes, and snippets.

@deivguerrero
Created March 26, 2019 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deivguerrero/3a1ba27604d6127da721052802e0a669 to your computer and use it in GitHub Desktop.
Save deivguerrero/3a1ba27604d6127da721052802e0a669 to your computer and use it in GitHub Desktop.
Descarga del Audio de un Video de Youtube utilizando youtube-dl
import youtube_dl
ydl_opts = {
"format": "bestaudio",
"outtmpl": "%(title)s.%(ext)s",
"postprocessors": [{
"key": "FFmpegExtractAudio",
"preferredcodec": "flac",
"preferredquality": "192",
}],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(["https://youtu.be/QVMDXf_mfH0"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment