ucas-iclass
[!WARNING] This repository is for learning purposes only. Use at your own risk.
iClass API for UCAS. Should also work for other schools, but not guaranteed.
π₯ Installation
Using binstall
cargo binstall ucas-iclass
Downloading from Releases
Navigate to the Releases page and download respective binary for your platform. Make sure to give it execute permissions.
Compiling from Source
cargo install ucas-iclass
π Usage
-
π Login: Login to iClass and save session to a file.
-
π Courses: List courses in current semester.
-
π Schedule: Get schedule for a specific date or week, defaulting to today.
-
β Checkin: Check-in for a specific schedule by id or uuid, defaulting to current schedule if any.
π€ Common Problems
Error: API error: δΊη»΄η ε·²ε€±ζοΌ
This is likely because:
- The iClass system's clock is far ahead, or
- Your system's clock is far behind.
Thus, timestamp calculated from your system will be treated as outdated by the iClass system, Fortunately, you can fix this by increasing the timestamp offset to an appropriate value, like $+30000$:
βοΈ TODO
- Customize api root for cli.
- Checkin: Default to current schedule if no
id_or_uuidprovided.