Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Udemy Says : 403 Forbidden You should use cookie base method to authenticate or try again in few minutes #513

Closed
almsx opened this issue May 28, 2020 · 16 comments
Labels
cant-reproduce Unable to reproduce the issue help-wanted Extra attention is needed

Comments

@almsx
Copy link

almsx commented May 28, 2020

Describe the bug
Hello udemy-dl team. I downloaded the update that was released 10 days ago because when I download it, it sends me the message: Udemy Says: 403 Forbidden You should use cookie base method to authenticate or try again in a few minutes.

To Reproduce
I have followed the guide written by the admin in the league for Google Chrome #389 and I have created a file named cookies.txt

I have followed the 2 options available:

$ python udemy-dl.py https://www.udemy.com/course/universidad-python-desde-cero-hasta-experto-django-flask-rest-web/ --info -k cookies.txt

$ python udemy-dl.py -u user@user.com -p password https://www.udemy.com/course/universidad-python-desde-cero-hasta-experto-django-flask-rest-web/ - k cookies.txt

I don't get a successful result :(

Screenshots

pythonuser

pythoncookies

Python Environment (please complete the following information):

  • OS Platform: [e.g. Windows 10, Ubuntu 16.04, macOS Sierra]
  • Python Version [e.g. 3.x.x]
@r0oth3x49
Copy link
Owner

@almsx did that worked after wait of few minutes? i can't reproduce. udemy servers don't like your ISP i guess

@iamaamir
Copy link

i am getting the same error

@r0oth3x49
Copy link
Owner

Describe the bug
Hello udemy-dl team. I downloaded the update that was released 10 days ago because when I download it, it sends me the message: Udemy Says: 403 Forbidden You should use cookie base method to authenticate or try again in a few minutes.

To Reproduce
I have followed the guide written by the admin in the league for Google Chrome #389 and I have created a file named cookies.txt

I have followed the 2 options available:

$ python udemy-dl.py https://www.udemy.com/course/universidad-python-desde-cero-hasta-experto-django-flask-rest-web/ --info -k cookies.txt

$ python udemy-dl.py -u user@user.com -p password https://www.udemy.com/course/universidad-python-desde-cero-hasta-experto-django-flask-rest-web/ - k cookies.txt

I don't get a successful result :(

Screenshots

pythonuser

pythoncookies

Python Environment (please complete the following information):

* OS Platform: [e.g. Windows 10, Ubuntu 16.04, macOS Sierra]

* Python Version [e.g. 3.x.x]

you should be either using cookie based method to login or user/pass based method. If user/pass based method don't work then cookie based method should work.

User/pass based

  • python udemy-dl.py -u UDEMY_EMAIL -p PASS COURSE_URL

Cookie based

  • python udemy-dl.py -k FILE_CONTAINING_COOKIES COURSE_URL.

Cookies should contain the access_key in it so before saving cookies to file make sure that cookies has this key otherwise udemy-dl will not be able to authenticate and download course.

@r0oth3x49 r0oth3x49 added cant-reproduce Unable to reproduce the issue help-wanted Extra attention is needed labels Jun 2, 2020
@wuguochao
Copy link

how to generate a cookie.txt file?

@xd003
Copy link

xd003 commented Jul 18, 2020

Facing this exact same issue . i tried both cookies and user/password method and facing same issues in both . Also i made sure that the cookie.txt file is in proper format as mentioned . Please reopen this issue

@kumarnipun
Copy link

kumarnipun commented Jul 18, 2020 via email

@xd003
Copy link

xd003 commented Jul 18, 2020

Whoever is having issue please drop me a separate email along error screenshot

On Sat, 18 Jul 2020 at 9:49 AM, xd003 @.***> wrote: Facing this exact same issue . i tried both cookies and user/password method and facing same issues in both . Also i made sure that the cookie.txt file is in proper format as mentioned . Please reopen this issue — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#513 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF33XPY22VHSLCLEWRTSJADR4EPEXANCNFSM4NMTLUGQ .

Screenshot_2020-07-18_10-08-54

@kumarnipun
Copy link

kumarnipun commented Jul 18, 2020 via email

@kumarnipun
Copy link

kumarnipun commented Jul 18, 2020 via email

@kumarnipun
Copy link

kumarnipun commented Jul 18, 2020 via email

@xd003
Copy link

xd003 commented Jul 18, 2020

@kumarnipun thanks for offering to help ,appreciate it , finally got fixed

what i did was logged out of my udemy account , logged back in and pasted the new cookie in the cookie.txt

@kumarnipun
Copy link

kumarnipun commented Jul 18, 2020 via email

@Aaditya46
Copy link

Hello,

I'm also facing the same issue. Could you please suggest me which cookie I need to past inside cookie.txt.

@jmunozl
Copy link

jmunozl commented Aug 5, 2020

@Aaditya46 #389 (comment)

@iamgovindthakur
Copy link

iamgovindthakur commented Oct 8, 2020

Hello Udemy-dl team thanks for providing such kind of utility but till today morning it was working fine and i downloaded many courses with it ,now i am getting an error with it when i am trying to download course i have attached the screenshot kindly see it and guide me if i am doing any wrong step and please help me ASAP.
Screenshot (22)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cant-reproduce Unable to reproduce the issue help-wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

10 participants