Download all YouTube playlist files as mp3
Posted by ark, ,

Here’s how I downloaded all the songs from a youtube playlist as mp3 files. You need to have youtube-dl instaled (I just used brew install youtube-dl)

First you need the playlist Id, it’s in the URL of the playlist, then visit a url like this:

Then cmd-a, cmd-c to copy the whole page.

pbpaste | fgrep 'videoId":' | cut -d '"' -f 4 | while read fil; do youtube-dl -x --audio-format mp3$fil; done

bam! all files downloaded!