Coder Social home page Coder Social logo

tp-o / edusoft Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 95 KB

Support register for courses and crawl your data on the HCMIU Edusoft website.

Home Page: https://github.com/TP-O/goer

License: MIT License

TypeScript 98.93% JavaScript 1.07%
edusoft npm-package hcmiu

edusoft's Introduction

โ›” [DEPRECATED], use https://github.com/TP-O/goer instead

EduSoft

EduSoft Package can help you get information from https://edusoftweb.hcmiu.edu.vn easily.

Installation

NPM

npm install edusoft

Yarn

yarn add edusoft

Usage

You need to provide credentials before using any feature that requires authentication.

const edu = require("edusoft");

edu.config({
    username: "<Student ID>",
    password: "<Passwod>",
});

News

Crawl all the news from https://edusoftweb.hcmiu.edu.vn/default.aspx?page=danhsachthongtin&type=0.

const news = await edu.getNews();

Schedule of current week

Not support for specific week yet.

const schedule = await edu.getSchedule();

Midterm schedule

const midtermSchedule = await edu.getMidtermSchedule();

Final schedule

const finalSchedule = await edu.getFinalSchedule();

Tuition

Information about your tuition.

const tuition = await edu.getTution();

Transcript

Getting transcript bases on year and semester. Parameters:

  • Year: required
  • Semester: default 1
const transcript = await edu.getTranscript(<Year>, <Semester>);

Register for courses

Registering for courses bases on a list of subject IDs (How to get ID).
ID of a subject looks like this: PT002IU01 |PT002IU|Physical Training 2|01|3|3|01/01/0001|0|0|0| |0|ITIT19CS31.

Warning: Do not sign in to your account while this function is working.

await edu.register([<Subject_ID_1>, <Subject_ID_2>], true);

edusoft's People

Contributors

dependabot[bot] avatar tp-o avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.