youtube-dl how to download as .mp3 code example
Example 1: youtube-dl mp3 only
youtube-dl -x --audio-format mp3 <youtube-link>
Example 2: linux download youtube mp3
youtube-dl --extract-audio --audio-format mp3 <video URL>
youtube-dl -x --audio-format mp3 <youtube-link>
youtube-dl --extract-audio --audio-format mp3 <video URL>