Simple python package for authentication and querying students, staff and other things in HSE. Copies behaviour of Hse App.
Usage example:
- Installing dependencies
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
- Using
python3
interpreter, setup credentials
username = "iipetrov@edu.hse.ru" # Corporate email
password = "p3tr0v_pa$$w0rd" # Corporate password
client_id = "01234567-89ab-cdef-0123-456789abcdef" # Android app ID
- Create
HseAppApi
instance, setup Bearer token usingHseAppApi.auth()
from api import HseAppApi
api = HseAppApi(username=username, password=password, client_id=client_id)
api.auth()
- Use methods to execute queries
student = api.search("Шишков Алексей", type_="student", count=1)
print(student[0])
# Output: {'id': 'lk13349', 'full_name': 'Шишков Алексей Алексеевич', ...
- Support methods for schedule
- Add manual to find a application
client_id