Skip to content

ShishckovA/HseAppApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hse App API

Simple python package for authentication and querying students, staff and other things in HSE. Copies behaviour of Hse App.

Usage example:

  1. Installing dependencies
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
  1. 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
  1. Create HseAppApi instance, setup Bearer token using HseAppApi.auth()
from api import HseAppApi

api = HseAppApi(username=username, password=password, client_id=client_id)
api.auth()
  1. Use methods to execute queries
student = api.search("Шишков Алексей", type_="student", count=1)
print(student[0])
# Output: {'id': 'lk13349', 'full_name': 'Шишков Алексей Алексеевич', ...

ToDo:

  1. Support methods for schedule
  2. Add manual to find a application client_id

About

Reverse-engeniered Hse App API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages