tsiarokhin / student_bsu_by

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Python 100.0%