brew install youtube-dl
brew install ffmpeg
Check http://rg3.github.io/youtube-dl/download.html
youtube-dl -u <email> -p <password> -o "./%(playlist)s/%(chapter_number)s-%(chapter)s/%(autonumber)03d-%(title)s.%(ext)s" https://www.udemy.com/<course_name>/