Tool for getting various student information from student.bsu.by website.
pip install student-bsu-by
from student_bsu_by import Student
student = Student("Surname", student_id=1234567)
print(student.general_data)
expelled = student.debt_data["expelled"]
if expelled:
print("Better luck next time :)")
class student_bsu_by.Student(surname, student_id='', contract_num='', captcha_solver=None)
- surname (str) - student's surname
- student_id (str) - student's ID
- contract_num (str) - student's contract number
- captcha_solver (function(filepath: str) -> str) - function, that receives file path of captcha image (jpg) and must return a valid captcha result. If not specified,
input()
prompt will be used
Student.term_data = [ # list of terms
[ # list of subjects
{
"subject": str,
"credit_test": str,
"credit_test_tries": int,
"exam": str,
"exam_tries": int
},
{...},
...
],
[...],
...
]
Student.general_data = {
"full_name": str,
"faculty": str,
"course": int,
"group": str,
"education_form": str,
"specialty": str,
"average_score": float
}
Student.debt_data = {
"debt": float,
"fine": float,
"expelled": bool
}
Student.credentials_data = {
"surname": str,
"contract_num": str,
"id": str
}