2.4.0 • Published 4 years ago

@payw/cau-timetable-scraper-types v2.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Installation

% npm install @payw/cau-timetable-scraper

v2.1.0 Migration

In v2.1.0, a new feature has been arrived where CTTS returns lectures along with the colleges and majors information separately.

// v2.0.x
const lectures = CTTS({})

// v2.1.x
// Object destructuing
const { lectures, colleges } = CTTS({})

// Or
const scrapeResult = CTTS({})
const lectures = scrapeResult.lectures
const colleges = scrapeResult.colleges

API

import { CTTS } from '@payw/cau-timetable-scraper'

const { lectures, colleges } = CTTS({
  id: 'CAU Portal ID',
  pw: 'password',
})

Types

RefinedLecture

The CTTS function returns an array of refined lectures.

keytype
coveragesCoverage[]
yearnumber
semesterstring
campusstring
collegestring
subjectstring
gradestring
coursestring
sectionstring
codestring
timestring
namestring
creditstring
professorstring
closedstring
schedulestring
buildingstring
roomstring
periodsPeriod[]
flexstring
notestring

Coverage

keytype
coursestring
collegestring
majorstring

Period

keytype
day'mon'\|'tue'\|'wed'\|'thu'\|'fri'\|'sat'\|'sun'
startHnumber
startMnumber
endHnumber
endMnumber

Check out type definitions for more information.

2.3.0

4 years ago

2.4.0

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.2

4 years ago