$ youtube-dl --list-extractors | grep udemy
- 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/
not working for me:
this is what I type:
C:\Users\Admin\Downloads\Programs>C:\Users\Admin\Downloads\Programs\youtube-dl.exe --cookies C:\Users\Admin\Downloads\udemy.com_cookies.txt -o '%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s' https://www.udemy.com/course/day-trading-strategies-day-trading-with-technical-analysis/
and this is what i get as output:
ERROR: '-' is not a valid URL. Set --default-search "ytsearch" (or run youtube-dl "ytsearch:-" ) to search YouTube
Whats wrong?
Thanks
EDIT:
Good luck downloading videos from udemy.com
Long story short, you simply can not do it. I tried all the "easy" methods...
Udemy started using Google's Widevine DRM protocols to encrypt their popular contents.
Previous "hacks" for widevine does not work, because google and udemy have updated/patched those hacks.
It can be done, but you'll need to do your "homework"... no one wants freeloaders to be flooded all over on udemy just so udemy and google can "update" the current method of downloading DRM content which is already ridiculously difficult alone for bypassing.
And lastly, for those who do not pay for content are seriously harming Udemy's content creators.