youtube-dl how to download only mp3 code example
Example 1: youtube-dl mp3 only
youtube-dl -x --audio-format mp3 <youtube-link>
Example 2: how to use youtube dl for mp3
youtube-dl -x --audio-format mp3 https://www.youtube.com/watch?v=jwD4AEVBL6Q