| Crates.io | ucas-iclass |
| lib.rs | ucas-iclass |
| version | 0.1.3 |
| created_at | 2025-10-18 03:29:33.281546+00 |
| updated_at | 2025-11-13 06:31:59.320246+00 |
| description | iClass API for UCAS |
| homepage | |
| repository | https://github.com/PRO-2684/ucas-iclass |
| max_upload_size | |
| id | 1888759 |
| size | 90,635 |
[!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.
binstallcargo binstall ucas-iclass
Navigate to the Releases page and download respective binary for your platform. Make sure to give it execute permissions.
cargo install ucas-iclass
π Login: Login to iClass and save session to a file.
ucas-iclass login <username> <password> [-s <session-file>]
π Courses: List courses in current semester.
ucas-iclass courses [-s <session-file>]
π Schedule: Get schedule for a specific date or week, defaulting to today.
ucas-iclass schedule [-d <date>] [-w] [-s <session-file>]
β Checkin: Check-in for a specific schedule by id or uuid, defaulting to current schedule if any.
ucas-iclass checkin [<id_or_uuid>] [-t <timestamp-or-offset>] [-s <session-file>]
Error: API error: δΊη»΄η ε·²ε€±ζοΌThis is likely because:
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$:
ucas-iclass checkin -t +30000
id_or_uuid provided.