8000 GitHub - fontlos/buaa-cli: BUAA Cli: Powerful tool to Make BUAA Great Again
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fontlos/buaa-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BUAA Cli: Powerful tool to Make BUAA Great Again

Are you still struggling with the hassle of classroom check-in?

Are you distressed that Boya course will never be able to grab?

Are you still putting up with the slow, useless of the "智慧北航"?

Now throw it in the trash and try this tool

This project is a derivative of buaa-api

注: 本项目只用于学习分享, 请于下载后 24 小时内删除, 使用产生的一切问题由使用者自行承担, 如有侵权我将删除此储存库和软件

Tips: This project is only for learning and sharing, please delete within 24 hours after downloading, all problems caused by the use are borne by the user, if there is any infringement I will delete this repository and software

Features

  • ⚡ Fast
    • 🦀 Written in Rust. High-performance data parsing
    • 🎯 Communicates directly with the server via a reverse interface. Reduce the time it takes to transfer static files to open web pages
  • ✨ Lightweight: An executable file that is only 5MB in size
  • ❤️ Easy
    • 📦Out-of-the-box. No complicated setup required
    • 🎉 Friendly command line output
  • 😎 Powerful
    • ⏰ Support for automated operations

Install

  1. Download from release (I'm going to pause providing the latest binaries for a while, so you need to compile by yourself)
  2. Install from source:
    git clone https://github.com/fontlos/buaa-cli
    cd buaa-cli
    cargo build --release

Usage

It is recommended to add the file path to the environment variable

SSO Login

Whatever you do, it's the first thing you need to do

For the first time to login:

buaa login -u <username> -p <password>

When your login expires, you can log back in directly in this

buaa login

You can also use the previous command to change your username and password

Boya Course

# refresh Boya Token
buaa boya login
# Query the available courses
# You will then be asked to enter an ID to automatically select the course
buaa boya query
# Select a course directly by ID
buaa boya select <ID>
# Drop a course directly by ID
buaa boya drop  <ID>
# Query statistics information
buaa boya status
# Query selected courses
buaa boya status --selected

Smart Classroom

# refresh Token
buaa class login

# Automatically check in for today's lessons
buaa class auto

# Query the courses for this term and save to local file by term ID
# You can also use this command to update the local file
# This will output a table with the course ID
# eg. '202420251' means the first term of 2024-2025
buaa class query <term ID>
# If don't add parameters, then read the list of courses from local file
buaa class query
# You can get all the schedules of the course through the course ID
# This will output a table with the schedule ID
buaa class query <course ID>
# These two IDs are distinguished by the length of the ID, term ID is usually 9 digits and course ID is usually 5 digits

# Check in directly by course ID
# However, since it is not possible to directly deduce the time of the lesson, the time parameter must be added
# eg. '0800' means 8:00 am
buaa class checkin <course ID> -t <time>
# Check in directly by schedule ID
# It is even possible to check in for the previous schedule
buaa class checkin <schedule ID>
# These two IDs are distinguished by the length of the ID, course ID is usually 5 digits and schedule ID is usually 7 digits

Teacher Evaluation System

# List the forms that need to be filled out and use the index to fill out the specified form
buaa tes list

# Fill out all the forms in order
buaa tes fill

# Automatically fill all forms
# Warning: This command may not be as expected in the test, the score is correct, but it will show an abnormality, and will try to fix it the next time the evaluation system is turned on
buaa tes auto

WiFi

You can use the following simple command to connect to BUAA-WiFi

buaa wifi login

On the Windows platform, you can use a .bat file and add it to the C:\Users\<Username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup folder, so that you can automatically connect to WiFi at boot

About

BUAA Cli: Powerful tool to Make BUAA Great Again

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0