Skip to content

Instantly share code, notes, and snippets.

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