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/cookie expiration issue, (cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.) #591

Closed scapman2k closed 3 years ago

scapman2k commented 3 years ago

[i] : Trying to login using session cookie [-] : Udemy Says: 403 Forbidden session cookie seems to be expired... [i] : Updating session cookie.. cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.

This gets fixed when I completely log out and log in to generate a new access token and replace it within the cookies.txt. However sometimes during the downloading session, it gives me this error. Is there a workaround?

r0oth3x49 commented 3 years ago

unfortunately the only workaround is already implemented, so you would need to provide new cookie by yourself if that happens.