download youtube videos to mp3 code example
Example 1: yt to mp3
Youtube-DL works great. Download from https://youtube-dl.org/. To use, type youtube-dl --audio-format mp3
Example 2: youtube download mp3
I use https://github.com/ytdl-org/youtube-dl/ as a Python CLI tool to download videos