Created
September 27, 2020 18:14
-
-
Save ozzyisgreat/0b8bf596a950c4f2bc12d7150bd23b49 to your computer and use it in GitHub Desktop.
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
#install ffmpeg and youtube-dl and python3 (obviously) | |
#run with python3 <filename with extension> <youtube_url> | |
import youtube_dl | |
import sys | |
params ={ | |
'format': 'bestaudio/best', | |
'postprocessors':[{ | |
'key': 'FFmpegExtractAudio', | |
'preferredcodec': 'mp3', | |
'preferredquality': '192', | |
}], | |
} | |
youtube= youtube_dl.YoutubeDL(params) | |
youtube.download(sys.argv[1:]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment