Skip to content

Tool for parsing various BSU student information from student.bsu.by website.

License

Notifications You must be signed in to change notification settings

tsiarokhin/student_bsu_by

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

student_bsu_by

Tool for getting various student information from student.bsu.by website.

Installation

pip install student-bsu-by

Usage

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 :)")

Documentation

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

Properties

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
}

About

Tool for parsing various BSU student information from student.bsu.by website.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages