DEV Community

Discussion on: How to download youtube video as audio using python

Collapse
 
kalebu profile image
Jordan Kalebu • Edited

Hello You could twist the audio downloader to be a format you want l


audio_downloader = YoutubeDL({'format':'m4a'})

 # OR 

audio_downloader = YoutubeDL({'format':'mp3'})

Enter fullscreen mode Exit fullscreen mode

and if that format is is available it will automatically download it