techtanic / Discounted-Udemy-Course-Enroller

A script/software for automatically enrolling/joining 100% discounted Udemy courses for free. Get Paid Udemy courses for free with just a few clicks.
https://duce.techtanic.space
MIT License
804 stars 232 forks source link

[Bug]: KeyError: 'course' GUI #175

Open TareqAbAmawi opened 1 week ago

TareqAbAmawi commented 1 week ago

What happened?

The problem has been present for a week or more and the same course, then the tool stops working and goes out. Even if I make an exception through the name or part of the course name, the problem persists and is not solved

Enroller

GUI

OS

Windows

Relevant log output

Traceback (most recent call last):
  File "gui.py", line 80, in scrape
  File "base.py", line 838, in start_enrolling
    self.handle_course_enrollment(index)
  File "base.py", line 861, in handle_course_enrollment
    course_id, self.link, is_free = self.get_course_id(self.link)
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base.py", line 761, in get_course_id
    is_free = not dma["serverSideProps"]["course"].get("isPaid", True)
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'course'

Version:v2.2
Link:https://www.udemy.com/course/level-up-with-javascript-110-projects-for-real-world-use/?couponCode=3B895221F6BD199A8544
Title:Level Up with JavaScript: 110 Projects for Real World Use!

Terms

stwillocks commented 1 week ago

same here:

Traceback (most recent call last): File "gui.py", line 80, in scrape File "base.py", line 838, in start_enrolling self.handle_course_enrollment(index) File "base.py", line 861, in handle_course_enrollment course_id, self.link, is_free = self.get_course_id(self.link) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "base.py", line 761, in get_course_id is_free = not dma["serverSideProps"]["course"].get("isPaid", True)


KeyError: 'course'

Version:v2.2
Link:https://www.udemy.com/course/level-up-with-javascript-110-projects-for-real-world-use/?couponCode=3B895221F6BD199A8544
Title:Level Up with JavaScript: 110 Projects for Real World Use!
TareqAbAmawi commented 1 week ago

yah same course !!

TareqAbAmawi commented 1 week ago

any update ?