$ 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/
using udemy business and not working for me
youtube-dl --write-sub --sub-lang en --cookies cookies.txt -o '%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s' https://company-name.udemy.com/devops-with-docker-kubernetes-and-azure-devops/
[udemy:course] devops-with-docker-kubernetes-and-azure-devops: Downloading webpage
[udemy:course] 2813427: Downloading course curriculum
ERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
latest youtube-dl