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

Cloudflare version 2 Captcha challenge #664

Closed any0n3 closed 2 years ago

any0n3 commented 3 years ago

cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version. A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. udemy course url: [e.g https://www.udemy.com/machinelearning/] '...'
  2. Run the following command to reproduce the error.
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Python Environment (please complete the following information):

Additional context Add any other context about the problem here.

faldor20 commented 3 years ago

This issue is a pretty poor job.. but I also had this problem. I guess its possible udemy has just started using Cloudflare. I was trying to download this course: https://www.udemy.com/course/dr-ks-complete-first-semester-general-chemistry-i-course/ I am on Windows 10 and live in Australia. I've no idea if the location is relevant but it's possible. I've never tried to download any other courses before, I was already logged in when I tried it, it might be worth testing it after making sure you are logged out of udemy... just trying to think why Cloudflare captcha would be triggering.

r0oth3x49 commented 2 years ago

I 'm using a third party module/lib and handled the exception simply. the alternative way is to use cookie based auth instead of user/pass