NJFU-library-cli 是使用rust编写的实现图书馆登录,查询,预约,取消的命令行工具
- 登录
- 查询姓名和座位
- 预约座位或空间,随机预约座位
- 取消预约
结合github action 自动预约
参考wiki
- if you use scoop
scoop install "https://raw.githubusercontent.com/jyf-111/NJFU-library-cli/main/njfulib.json"
git clone https://github.com/jyf-111/NJFU-library-cli.git
cd NJFU-library-cli
cargo build --release
cd target/release
./njfulib -h
njfulib login -u <username> -p <password> -c <cookie>
njfulib query -n <name> [-f <filter>]
njfulib query -s <site>
njfulib statue
njfulib reserve [-s <site> ...] [-f <filter> ...] [-d <day>]--start <start time> --end <end time> -r 30
njfulib cancel -u <uuid>
see also: 具体参数解释