sysu-jwxt

0.3.1 • Public • Published

Sysu - Jwxt

A tool that aims to simplify the complicated and confusing APIs in Sun Yat-sen University - JWXT.

Feature

Jwxt

since jwxt only supports old version of IE so it's the very first task to work out APIs of jwxt

  • (only) support netid login
  • course grade
  • course grade detail, such as final mark and usual-time mark
  • curriculum (timetable)
  • course list

Elect

to be implemented

How

  1. npm i sysu-jwxt

Example

const Jwxt = require('sysu-jwxt');
const me = new Jwxt(netid, password, {
  // optional config
  logger: console,  // for detailed infomation logging, default to null.
  maxLoginRetry: 3, // max retry time, default to -1 (unlimited retry).
});

(async () => {
  await me.login();
  // get overall course grades
  let grades = await me.getGrades('2016-2017', '2'); // give year and semaster
  for (const grade of grades) {
    let detail = await me.getGradeDetail(grade.id);  // course id given by jwxt
    /* other procedures */
  }
})();

Comming Feature

Changelog

  • 0.3.0
    • add course list support
  • 0.2.0
    • add curriculum(timetable) support
  • 0.1.2
    • add course grade and detail support

Readme

Keywords

none

Package Sidebar

Install

npm i sysu-jwxt

Weekly Downloads

0

Version

0.3.1

License

MIT

Last publish

Collaborators

  • megrezzhu