ZZU.Py
郑州大学移动校园的 Python API 封装
安装
pip install zzupy --upgrade
Done & To Do
前往 ZZU.Py Completion Plan 查看 To Do
文档
文档
Note
Note
Example
from zzupy import ZZUPy
from http.cookies import SimpleCookie
cookie = SimpleCookie()
cookie["userToken"] = "Your userToken"
cookie["userToken"]["domain"] = ".zzu.edu.cn"
cookie["userToken"]["path"] = "/"
me = ZZUPy("usercode","password", cookie)
info = me.login()
print(f"{info["usercode"]} {info["name"]} 登录成功")
print("校园卡余额:", str(me.eCard.get_balance()))
print("剩余电费:", str(me.eCard.get_remaining_energy()))
print("课表JSON:", me.Supwisdom.get_current_week_courses("172").dump_json())
me.Network.login()
print(me.Network.get_online_devices().dump_json())
致谢
许可
MIT license