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

Version 1.0 - Cloudflare Captcha error - no download #590

Closed ds2k5 closed 3 years ago

ds2k5 commented 3 years ago

Download did not work. Error: cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.

It is on every course download I tryed, looks like a general issue.

Steps to reproduce the behavior:

  1. udemy course url: https://www.udemy.com/course/network-socket-programming-in-python-3-practical-way/learn

  2. Run the following command to reproduce the error. ./udemy-dl.py https://www.udemy.com/course/network-socket-programming-in-python-3-practical-way/learn

  3. See error cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.

Python Environment (please complete the following information):

ds2k5 commented 3 years ago

Solution was:

sudo pip3 install -r requirements.txt

had the python packages only in the user context this did not work.

r0oth3x49 commented 3 years ago

only workaround to this exception is to provide cookies by your self.