r0oth3x49 / udemy-dl

A cross-platform python based utility to download courses from udemy for personal offline use.
MIT License
4.83k stars 1.19k forks source link

Collect Enrolled Course's URLs #652

Closed t4nnyyy closed 3 years ago

t4nnyyy commented 3 years ago

Describe the bug Currently, we have to log in udemy account to the browser and collect URLs of each course, but if we can able to collect the all enrolled courses' URL from an account automatically then it will be very easy t download the course in a flash.

To Reproduce Steps to reproduce the behavior: I created a simple bash script to collect all URLs from the HTML page, so we can use that script to collect all course's URL, however, I don't know python much but if anyone can convert my idea to python and merge it with this code then it will be great

Additional context code of my bash script below:

cat *.html | tr '"' '\n' | tr "'" '\n' | grep -e '^https://www.udemy.com/course' | sort | uniq > links.txt

python3 udemy-dl.py links.txt -k access_token.txt
r0oth3x49 commented 3 years ago

this feature is already in queue so closing this as dup.