aapatre / Automatic-Udemy-Course-Enroller-GET-PAID-UDEMY-COURSES-for-FREE

Do you want to LEARN NEW STUFF for FREE? Don't worry, with the power of web-scraping and automation, this script will find the necessary Udemy coupons & enroll you for PAID UDEMY COURSES, ABSOLUTELY FREE!
GNU General Public License v3.0
3.13k stars 541 forks source link

[BUG] 6-Digit Verification is breaking down the bot. #447

Open wacns opened 7 months ago

wacns commented 7 months ago

Describe the bug After I've entered all the details it prompts me to enter, the bot just terminates after getting this error. Exception in redeem courses: 'access_token'. As well as it sends a 6-Digit on my email so i can enter to complete the login process.

To Reproduce Steps to reproduce the behavior:

  1. Run the run_enroller.py
  2. Enter the required information
  3. The bot start running
  4. It terminates with the error Exception in redeem courses: 'access_token'
  5. Sends an email that contains 6-Digit Verification

Expected behavior Just login successfully and enroll my account to a free courses

Screenshots image

Desktop (please complete the following information):

Additional context I could resolve this problem by manually retrieving the cookies from the browser DevTools and overwriting the current cookies in the udemy_rest.py

cullzie commented 6 months ago

@wacns Thanks for reporting. I have not seen this issue yet but will keep an eye on it.

wacns commented 6 months ago

@wacns Thanks for reporting. I have not seen this issue yet but will keep an eye on it.

It's probably related somehow with (The same concept and process of) 2FA.

After logging in it sends me a 6-Digit verification on my email

cullzie commented 6 months ago

@wacns I think you need to disable 2FA on your account which is available under Account Security settings. Obviously this compromises your account in some ways but its not feasible for the script to handle 2FA at this time. An improvement for sure would be at least to handle this case gracefully and output some useful information.

Mare3836272 commented 1 month ago

How did u add cookies?i tried so many things.this error dont seem to go away.udemy always asks for code it seems,they dont care if 2fa is active or not.

taiwan-king commented 1 week ago

My 2FA is turned off, but I still received the 2FA email 6-Digit verification when I logged in today.

taiwan-king commented 1 week ago

How did u add cookies?i tried so many things.this error dont seem to go away.udemy always asks for code it seems,they dont care if 2fa is active or not.你是如何添加cookie的? 我嘗試了很多東西。

"access_token": "your_access_token", "client_id": "your_client_id", "csrftoken": "your_csrftoken", modify in udemy_rest.py

laurentlemercier commented 6 days ago

I had temporarly the same problem. Solved by enabling then disabling 2FA in my account, then removing the ".cookie" file in udemy_enroller config directory.

Hope this helps