Linux – How to download whole music playlist from Youtube

I listen to music a lot mainly trance/dance and other electronic music. A lot of this music is available on youtube and there is a perfect tool to download it.

sudo pip install youtube-dl
mkdir music
cd music
# Download music of whole user
youtube-dl -i
# Delete files smaller than 100MB
find . -size -100M -delete
# Convert music to mp3
mkdir mp3
find . -exec ffmpeg -i "{}" "mp3/{}.mp3" \;