Puyodead1 / udemy-downloader

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

[Bug]: Unable to extract arguments from course page! Make sure you have a cookies.txt file! #213

Closed coozgan closed 4 months ago

coozgan commented 5 months ago

What happened?

What happened? I am on personal plan, using macosx. I am able to download on my regular purchased course account. but not on this subscription type. I can't proceed with download because it keeps on asking about "cookies.txt", I have replicated what was use to resolve in this ticket but still no luck.

this are the things i have tried;

python3 main.py -c https://www.udemy.com/course/aws-certified-associate-architect-developer-sysops-admin/learn/lecture/15562114#overview --browser chrome
[pre_run:331] INFO: Output directory set to my/path/
[main:1934] INFO: > Fetching course information, this may take a minute...
[_extract_subscription_course_info:925] CRITICAL: Unable to extract arguments from course page! Make sure you have a cookies.txt file!
python3 main.py -c https://www.udemy.com/course/aws-certified-associate-architect-developer-sysops-admin/learn/lecture/15562114#overview --browser chrome --sc
[pre_run:331] INFO: Output directory set to my/path/
[main:1934] INFO: > Fetching course information, this may take a minute...
[_extract_subscription_course_info:925] CRITICAL: Unable to extract arguments from course page! Make sure you have a cookies.txt file!

this is my directory: ![Uploading Screenshot 2024-03-21 at 11.08.37 PM.png…]()

Expected Result

able to download the course the same as my regular account

Branch

master/main

What operating systems are you seeing the problem on?

MacOS

Relevant log output

'''
[pre_run:331] INFO: Output directory set to my/path/
[main:1934] INFO: > Fetching course information, this may take a minute...
[_extract_subscription_course_info:925] CRITICAL: Unable to extract arguments from course page! Make sure you have a cookies.txt file!
'''

Other information

No response

lesywix commented 5 months ago

same issue

Puyodead1 commented 4 months ago

Use feat/refactor, make sure you're logged into udemy in chrome, close chrome before running the script, try a different browser

coozgan commented 4 months ago

Yeah, Sorry forgot to close this. I just didn't understand how it works. I realized I didn't need the cookies.txt for this method. Thanks!