Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
TareqAbAmawi opened this issue Sep 11, 2024 · 3 comments
Open
1 task done

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

TareqAbAmawi opened this issue Sep 11, 2024 · 3 comments
Labels
Status: TBC To be confirmed Type: Bug Something isn't working

Comments

@TareqAbAmawi
Copy link

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.
@TareqAbAmawi TareqAbAmawi added Status: TBC To be confirmed Type: Bug Something isn't working labels Sep 11, 2024
@stwillocks
Copy link

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
Copy link
Author

yah same course !!

@TareqAbAmawi
Copy link
Author

any update ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: TBC To be confirmed Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants