Youtube-dl
From wikinotes
A nice tool for downloading from youtube, various other video sites.
Documentation
github https://github.com/ytdl-org/youtube-dl
Usage
youtube-dl ${YOUTUBE_URL} # download video, using defaults youtube-dl -F ${YOUTUBE_URL} # list available video formats (not audio/video only formats) youtube-dl -f 137 ${YOUTUBE_URL} # download a specific video format (if avail) youtube-dl -f 'bestaudio+bestvideo' ${YOUTUBE_URL} # get best video/audio quality separately, assemble them