Puyodead1 / udemy-downloader

A Udemy downloader that can download courses, with DRM support.
MIT License
1.37k stars 313 forks source link

does not see any personal plan lessons that have not been purchased #248

Closed forfreal2 closed 1 month ago

forfreal2 commented 1 month ago

What happened?

I signed up for a 1 week free trial personal plan membership and added one free and one personal plan course to the account

free course udemy.com/course/excel-dizi-formulleri/ personel plan course udemy.com/course/excelegitim/

downloaded the free course without any problems but gave an error while downloading the personal plan course

error

Failed request https://www.udemy.com/course/excelegitim/learn [03:24:07] [udemy-downloader] [_get:1114] ERROR: 403 Forbidden, retrying (attempt 0 )...

When I query it via the API link below, it sees the free course but not the course for the personal plan.

https://www.[udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=1000&ordering=-last_accessed,-access_time&search=excel-dizi-formulleri]

22

https://www.[udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=1000&ordering=-last_accessed,-access_time&search=excelegitim](https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,url,title,published_title&page=1&page_size=1000&ordering=-last_accessed,-access_time&search=excelegitim)

11

Can you help me about this issue?

Expected Result

downloaded

Branch

Other (Enter below)

What operating systems are you seeing the problem on?

Windows

Relevant log output

No response

Other information

No response

Puyodead1 commented 1 month ago

because subscription courses are not owned by you... thats why the -sc option exists, use with --browser

forfreal2 commented 1 month ago

because subscription courses are not owned by you... thats why the -sc option exists, use with --browser

py main.py -c https://www.udemy.com/course/excelegitim/learn --browser brave -sc

like this but still

Fetching course information, this may take a minute... [03:35:01] [udemy-downloader] [_get:1113] ERROR: Failed request https://www.udemy.com/course/excelegitim/learn [03:35:01] [udemy-downloader] [_get:1114] ERROR: 403 Forbidden, retrying (attempt 0 )...

Puyodead1 commented 1 month ago

because subscription courses are not owned by you... thats why the -sc option exists, use with --browser

py main.py -c https://www.udemy.com/course/excelegitim/learn --browser brave -sc

like this but still

Fetching course information, this may take a minute... [03:35:01] [udemy-downloader] [_get:1113] ERROR: Failed request https://www.udemy.com/course/excelegitim/learn [03:35:01] [udemy-downloader] [_get:1114] ERROR: 403 Forbidden, retrying (attempt 0 )...

are you logged in to udemy in brave? most likely you are being served a cloudflare challenge

forfreal2 commented 1 month ago

because subscription courses are not owned by you... thats why the -sc option exists, use with --browser

py main.py -c https://www.udemy.com/course/excelegitim/learn --browser brave -sc like this but still Fetching course information, this may take a minute... [03:35:01] [udemy-downloader] [_get:1113] ERROR: Failed request https://www.udemy.com/course/excelegitim/learn [03:35:01] [udemy-downloader] [_get:1114] ERROR: 403 Forbidden, retrying (attempt 0 )...

are you logged in to udemy in brave? most likely you are being served a cloudflare challenge

Yes, I logged in, it downloads the purchased courses, but if it's because of cloudflare, shouldn't it download them too?