Created
March 26, 2019 16:09
-
-
Save deivguerrero/3a1ba27604d6127da721052802e0a669 to your computer and use it in GitHub Desktop.
Descarga del Audio de un Video de Youtube utilizando youtube-dl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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