I used to use Audacity with Sound flower to rip audio from youtube. Something changed making it incompatible so a friend put me onto this one. Seems to work well.
yt-dlp --proxy socks5h://127.0.0.1:9050 -t mp3 "<youtube_url>"