0.2.4 • Published 4 years ago

rpi-schedule-parser v0.2.4

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

RPI Schedule Parser

This package exposes two functions that fetch and parse RPI's official course listing.

Installation

$ npm install rpi-schedule-parser

Usage

Course, Section, and Period Interfaces

getPeriodsForTerm(termCode: string): Promise<Period[]>

Fetches the periods for a semester.

getCoursesForTerm(termCode: string): Promise<Course[]>

Fetches the periods for a semester and aggregates them into courses.


Term Codes

RPI's term codes consist of the 4-digit year the semester starts in plus the 0-padded month. Arch makes it a little weirder since there are 3 parts:

  • "20200501" Summer 2020 Full Term
  • "20200502" Summer 2020 First Term
  • "20200503" Summer 2020 Second Term
  • "202001" Spring 2020
  • "202009" Fall 2020

Examples

const { getPeriodsForTerm } = require('rpi-schedule-parser')

getPeriodsForTerm('202009')
  .then(periods => {
    // Do whatver you want with the periods
    // The possibilities are endless :]
  })
  .catch(console.error)
const { getCoursesForTerm } = require('rpi-schedule-parser')

getCoursesForTerm('202009')
  .then(courses => {
    // Do whatver you want with the courses
    // The possibilities are endless :]
  })
  .catch(console.error)
0.2.1

4 years ago

0.2.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.4

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago