How to download your Udemy course videos using youtube-dl
$ youtube-dl --list-extractors | grep udemy
Steps
- Get link to the course to download. e.g. https://www.udemy.com/course-name/
- Login into udemy website, save the cookie from chrome using Chrome (Cookie.txt)1 export extension. Save it to file udemy-cookies.txt
- Get the link of the video that you want to download. usually in format. Use the command provided below where you have to replace the {course_link} and {path_to_cookies_file} with respective paths.
$ youtube-dl {course_link} --cookies {path_to_cookies_file}
$ youtube-dl --cookies ./udemy-cookies.txt https://www.udemy.com/course-name/
Notes
- If you have previously installed
youtube-dl
, you should update it before attempting to download your Udemy courses$ youtube-dl -U
- If you want your videos to be organized by chapter and the indices included, you can specify the output flag
-o
$ youtube-dl --cookies ./udemy-cookies.txt -o '%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s' https://www.udemy.com/course-name/
Did a number of attempts today nothing worked. Anyone knows solution?
2 Udemy what the hell you're doing? I have purchased a course and I can't watch it offline on my desktop. Why is that? Do not suggest me mobile device just because screen is small and I'd like to make notes for myself with some important keys from video. It is not a movie to watch on mobile. It needs to be watched on desktop to see letters and be able to make notes for myself whcih I can review few times before doing certification.
Seriously I wanted to purchase few more courses but hell no. It was enough I'm not gonna buy anymore until I have the option to watch them offline on my laptop.