There's a couple of posts on downloading audio from YouTube utilizing youtube-dl, yet none of them are concrete or excessively supportive. I'm considering what the most ideal approach to do it from Python content is.
Look at the below example,
import youtube_dl
ydl_opts = {}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(['
])
Clearly, in the event that you simply care about the audio, you'd preferably not download the entire video...
The youtube-dl source is just so supportive (ie, not very).
Anyone suggest to me how to write this code?