Skip to content

Instantly share code, notes, and snippets.

@ngbeslhang
Created April 15, 2017 15:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Automatically download songs from links in a txt file because mom pls
import youtube_dl
ydl = youtube_dl.YoutubeDL({
'format': 'bestvideo+bestaudio',
"nocheckcertificate": True,
"keepvideo": True
})
with open("songs.txt", 'r') as q:
ydl.download(q.readlines())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment