使用示例

from school_api import SchoolClient
# 实例化一个用户
school = SchoolClient(url='http://210.38.137.126:8016') 
student = school.user_login('xxxx','xxxx',timeout=10)

获取【个人课表】信息

schedule_data = student.get_schedule()
print(schedule_data)

获取【班级课表】信息

schedule_data = student.get_schedule(schedule_type=1)
print(schedule_data)

获取【成绩】信息

score_data = student.get_score(use_api=0)
print(score_data)

获取【用户】信息

info_data = student.get_info()
print(info_data)

results matching ""

    No results matching ""