Giter Club home page Giter Club logo

tls-xb's Introduction

tls-xb

tls-xb is a cli tool that fetches scores and GPA from Tsinglan Xiaobao.

Prerequisites

Installation

cargo install tls-xb

Building

git clone https://github.com/hey2022/tls-xb.git
cd tls-xb
cargo build --release
./target/release/tls-xb --version

Usage

In your terminal, run tls-xb login to login, then run tls-xb to run the program.

tls-xb's People

Contributors

hey2022 avatar dependabot[bot] avatar aulimaru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tls-xb's Issues

Duplicated subjects

Sometimes when getting the subjects for a semester, there will be multiple subjects with the same id but a different subject code for some reason, maybe because of a class change. This will lead to the program outputting duplicate information for a subject.

Response for https://tsinglanstudent.schoolis.cn/api/LearningTask/GetStuSubjectListForSelect containing duplicated subjects:

{
  "data": [
    {
      "subjectCode": "CS401",
      "id": 65943,
      "name": "AP Computer Science Principles",
      "eName": "AP Computer Science Principles"
    },
    {
      "subjectCode": "EN203",
      "id": 129809,
      "name": "IGCSE English Literature",
      "eName": "IGCSE English Literature"
    },
    {
      "subjectCode": "EN205",
      "id": 129809,
      "name": "IGCSE English Literature",
      "eName": "IGCSE English Literature"
    },
    {
      "subjectCode": "MA405",
      "id": 84014,
      "name": "AP Calculus BC",
      "eName": "AP Calculus BC"
    },
    {
      "subjectCode": "ML 200",
      "id": 130550,
      "name": "Chinese as a Second Language II",
      "eName": "Chinese as a Second Language II"
    },
    {
      "subjectCode": "ML110",
      "id": 41066,
      "name": "Spanish I",
      "eName": "Spanish I"
    },
    {
      "subjectCode": "PE US",
      "id": 34037,
      "name": "Physical Education",
      "eName": "Physical Education"
    },
    {
      "subjectCode": "SC303",
      "id": 65942,
      "name": "AP Physics 1",
      "eName": "AP Physics 1"
    },
    {
      "subjectCode": "SO211",
      "id": 129808,
      "name": "IGCSE Economics",
      "eName": "IGCSE Economics"
    }
  ],
  "msgCN": null,
  "msgEN": null,
  "state": 0,
  "msg": null
}

Captcha prevents login

Sometimes there is a captcha that will make the program fail to login. There should be a way for the user to get the captcha image and type in the captcha to login.

Proper config.toml path

config.toml is read from the current directory for now.
However, it should be read from a fixed config directory for each operating system.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.