Use the youtube-dl tool to rip music from a youtube url.
youtube-dl --extract-audio --audio-format mp3 [URL]