EdupageAPI / edupage-api

A python library for accessing your Edupage account
https://edupageapi.github.io/edupage-api/
GNU General Public License v3.0
67 stars 13 forks source link

LoginDataParsingException [Bug] #47

Closed vlckoadam closed 2 years ago

vlckoadam commented 2 years ago

Describe the bug LDPE (exception, nie plast) Asi si Edupage trocha prekopal kód.

Your code Obyčajný edupage.login() Credentials v konštruktori sú ok, subdoména existuje. Do 11:00 to šlapalo.

Error message

Traceback (most recent call last):
  File "C:\Users\pc\AppData\Local\Programs\Python\Python38-32\lib\site-packages\edupage_api\__init__.py", line 57, in login
    self.parse_login_data(response.content.decode())
  File "C:\Users\pc\AppData\Local\Programs\Python\Python38-32\lib\site-packages\edupage_api\__init__.py", line 64, in parse_login_data
    js_json = data.split("$j(document).ready(function() {")[1] \
IndexError: list index out of range

Version

BelKed commented 2 years ago

Unfortunately, I can't reproduce this behaviour in the latest version (0.9.981). I think it was already fixed in this commit: https://github.com/ivanhrabcak/edupage-api/commit/a975c65fca05cc274539daec972d5c50ed6994c2 Please try upgrading to this version and try running your code again...

vlckoadam commented 2 years ago

Ok. Updating helped. Thanks.