Download videos from Udemy with youtube-dl

Use cookies.txt extension for chrome to get the cookies file

youtube-dl https://www.udemy.com/your_course/learn/v4/t/lecture/3948874?start=30 --cookies cookies.txt

To categorize the videos you can use

youtube-dl --cookies cookies.txt -o "%(playlist)s/%(chapter_number)s %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s" https://www.udemy.com/your_course

Unfortunately there is no way to fetch the content files such as PDF or exe files so you got to do that by yourself. 😣