Skip to content

Instantly share code, notes, and snippets.

@deivguerrero
Last active April 5, 2019 22:35
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/b26c3ad24d6f79b4406d05258c4bdb6d to your computer and use it in GitHub Desktop.
Save deivguerrero/b26c3ad24d6f79b4406d05258c4bdb6d to your computer and use it in GitHub Desktop.
Mismo código, solo se reemplazo el recurso de descarga
import youtube_dl
ydl_opts = {
"format":
"bestaudio",
"outtmpl":
"%(title)s.%(ext)s",
"postprocessors": [{
"key": "FFmpegExtractAudio",
"preferredcodec": "flac",
"preferredquality": "192",
}],
}
resources = [
"https://rebrand.ly/prueba-para-25441",
]
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
x = ydl.download(resources)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment