http://ytdl-org.github.io/youtube-dl/download.html
sudo apt install ffmpeg
sudo apt install id3v2 # For tagging
You may need to attempt the download several times if you are encountering a 403 error.
youtube-dl --extract-audio --audio-format vorbis -o "%(title)s.%(ext)s" <url>
youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" <url>
id3v2 -a <artist> *
id3v2 -A <album> *
id3v2 -g <genre>
id3v2 -t <title>
id3v2 -T <track-num> <file>
id3v2 -y <year> *