Open Source and exclusive library for automated work with Dnevnik
PyPI library. This library developed for one year, its a big time for this project. I am very happy for this project. This is a big push for a seventh grade developer. I've known since 5th grade that the diary app is very buggy, which interfered with the learning process. It was necessary to make a Telegram bot, but a foundation was needed. That's how the idea was born
Its a Documentation for this library
New system to get auth token
from dnevniklib import UserToken
UserToken(_login="<LOGIN>", _password="<PASSW>", browser="<CHROME OR FIREFOX>", config_file="dnevnik.json").configuration() # File must be done, but error
from dnevniklib import UserToken
UserToken(_login="<LOGIN>", _password="<PASSW>", browser="<CHROME OR FIREFOX>", config_file="dnevnik.json").get_token() # Wait 10-15 second
from dnevniklib import User
user = User(token="")
print(user.get_attendance_by_date(to_date="", from_date="")) # The date in a supported format can be found User().get_date_in_format(year, month, day)
from dnevniklib import User
user = User(token="")
print(user.first_name)
from dnevniklib import User
user = User(token="")
print(user.class_name)
from dnevniklib import User, Marks
user = User(token="")
marks=Marks(user=user)
print(marks.get_marks_by_date(date="")) # The date in a supported format can be found User().get_date_in_format(year, month, day)
from dnevniklib import User, Marks
user = User(token="")
marks=Marks(user=user)
print(marks.get_trimester_marks(trimester=0))
from dnevniklib import User, Homeworks
user = User(token="")
homeworks=Homeworks(user=user)
print(homeworks.get_homeworks_by_date(date="")) # The date in a supported format can be found User().get_date_in_format(year, month, day)
from dnevniklib import User, School
user = User(token="")
school=School(session=user.session, token=user.token, data_about_user=user.data_about_user)
print(school.get_info_about_school())
I would like to say a big thank you to one person. Without him, I would not have written such a project. He helped before writing the code. Fixed, thank you!