Created
April 15, 2017 15:41
-
-
Save ngbeslhang/97763da4a12891637d1e6eb855b6cfa7 to your computer and use it in GitHub Desktop.
Automatically download songs from links in a txt file because mom pls
This file contains 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 = 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