Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hutech Api

API WEB DAOTAO.HUTECH.EDU.VN

Build Status

Hutech api was written to make it easier to get the data of the Hutech website.

Features

  • getCookie✨
  • getSchedulePersonal ✨
  • getPoint ✨
  • gettScheduleWeek ✨
  • getInfoStudent ✨

Tech

Package uses a number of open source projects to work properly:

  • node.js - you can use with nodejs
  • Express - fast node.js network app framework

And of course hutech-api is open source with a public repository on GitHub.

Installation

hutech-api requires Node.js v10+ to run.

Install the dependencies and devDependencies and start the server.

cd your-project
npm install --save hutech-api

Usage

  • import
    const Hutech = require("hutech-api")
  • getCookie::
    Hutech.getCookie("username", password);
  • getSchedulePersonal (http://daotao.hutech.edu.vn/default.aspx?page=thoikhoabieu&sta=1):
    Hutech.getSchedulePersonal("username", "password");
  • Response getSchedulePersonal:
    {
        "account": "Hồ Văn Minh (1811060485)",
        "data": [
            {
                "codeSubject": "CAP126",
                "subject": " Ngôn ngữ phát triển ứng dụng mới",
                "start": "2",
                "room": "E1-09.07E1-09.10",
                "date": "07/03/2022--13/03/202214/02/2022--10/04/2022"
            },
            ...
        ]
    }
  • getScheduleWeek (http://daotao.hutech.edu.vn/default.aspx?page=thoikhoabieu&sta=0)
    Hutech.getScheduleWeek("username", "password");
  • Response getScheduleWeek:
    {
        "account": "Hồ Văn Minh (1811060485)",
        "data": [
            {
                "subject": "Chuyên đề công nghệ phần mềm",
                "codeSubject": "CMP188 nhóm B02 ",
                "weekday": "Thứ Ba",
                "room": "E1-10.01",
                "start": "2",
                "date": "15/02/2022"
            },
            ...
        ]
    }
  • getPoint (http://daotao.hutech.edu.vn/Default.aspx?page=xemdiemthi)
    Hutech.getPoint("username", "password");
  • Response getPoint:
    {
        "account": "Hồ Văn Minh (1811060485)",
        "data": [
           {
            "title": "\n\t\t\tHọc kỳ 1 - Năm học 2018-2019\n\t\t",
            "pointSubject": [
                {
                    "codeSubject": "CMP365",
                    "subject": "Thực hành kỹ thuật lập trình",
                    "tc": "1",
                    "kind": "A",
                    "total": "4.0"
                },
                ...
            ],
            "pointAll": [
                {
                    "pointTb": "3.27",
                    "point4": "3.27",
                    "tcd": "14",
                    "tctl": "14"
                }
            ]
           },
           ...
        ]
    }
  • getInfoStudent (http://daotao.hutech.edu.vn/Default.aspx?page=xemlichthi)
    Hutech.getInfoStudent("username", "password");
  • Response getInfoStudent:
    {
        "studentCode": "1811060485",
        "studentName": "Hồ Văn Minh",
        "gender": "Nam",
        "country": "Bình Dương",
        "class": "18DTHA6",
        "majors": "Công nghệ thông tin",
        "department": "Công nghệ thông tin",
        "education": "Đại học chính quy",
        "year": "2018-2022"
    }

Response Key (Vietnamese)

    "codeSubject": Mã MH,
    "subject": Tên MH,
    "start": Tiết BD,
    "room": Phòng,
    "date": Thời gian học,
    "tc": Tín chỉ môn,
    "kind": xếp loại,
    "total": Tổng điểm hệ số 4,
    "pointTb": Điểm trung bình học kỳ hệ 4,
    "point4": Điểm trung bình tích lũy (hệ 4),
    "tcd": Số tín chỉ đạt,
    "tctl": Số tín chỉ tích lũy,
    "studentCode": Mã sinh viên,
    "studentName": Tên sinh viên,    
    "gender": Phái,
    "country": Nơi sinh,
    "class": Lớp,
    "majors": Ngành,
    "department": Khoa,
    "education": Hệ đào tạo,
    "year": Khóa học
   

License

ISC

Free Software, Hell Yeah!

About

Package get data website daotao.hutech.edu.vn

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages