Skip to content

Instantly share code, notes, and snippets.

@ngbeslhang
Created April 15, 2017 15:41
Show Gist options
  • Save ngbeslhang/97763da4a12891637d1e6eb855b6cfa7 to your computer and use it in GitHub Desktop.
Save ngbeslhang/97763da4a12891637d1e6eb855b6cfa7 to your computer and use it in GitHub Desktop.
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