Licence
ISC
Version
1.2.3
Deps
1
Size
15 kB
Vulns
0
Weekly
0
University Schedule Parser
Parse schedule for some university in Indonesia.
Installation
Using npm:
$ npm install university-schedule-parser
Usage
In es6:
import {ScheduleType, parse} from 'university-schedule-parser';
.
.
.
// Schedule webpage html in string
const html = '...';
// University name
const type = ScheduleType.Telkom;
const schedule = parse(html, type);
Parsed schedule will have properties described below.
StudentData
| Name | Type | Description |
|---|---|---|
name |
string | Student name |
nim |
string | Student ID |
schedules |
array of Schedule |
Student schedules |
Schedule
| Name | Type | Description |
|---|---|---|
day |
string | Day name for current schedule (english / indonesian) |
start |
string | Start hour for current schedule |
end |
string | End hour for current schedule |
name |
string | Schedule name |
room |
string | Schedule room name |
class_name |
string | Schedule class name |
code |
string | Schedule code |
Supported Universities
Below are supported university schedule and their respective enum type.
| Type | University |
|---|---|
Telkom |
Telkom University |
UGM |
Universitas Gadjah Mada |
Matias Alvin(2019)