This package has been deprecated

Author message:

this version has been deprecated

xjtuagent

1.0.1 • Public • Published

xjtuAgent

xjtuAgent is an API for accessing XJTU net service by node.js

It works by simulating HTTP calls, but It can avoid redundant operation and can be done automatically.

Installation

$ npm install xjtuagent

Usage

一键选课

const xjtuagent = require('xjtuagent');
 
var my = new xjtuagent();
 
my.info(
  "username", // your XJTU NetID
  "password" // your NetID's password
)
 
my.queue("ssfw_evaluation", () => {
  my.result.teacher.forEach((v, i, a) => {
    if (1) {
      console.log(i, v['课程名称']);
      my.use("ssfw_evaluation_set", v, {
        eval: "先生ちゃん大好き",
        advice: "希望老师多和学生互动",
        opts: [4,4,4,4,4,4,4,4,4,4]
      })
    }
  })
})
 

Plugin

Readme

Keywords

Package Sidebar

Install

npm i xjtuagent

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • windprophet