Skip to content

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

@TareqAbAmawi

Description

@TareqAbAmawi

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

  • I am using the latest available version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions