Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

A simple javascript parser for the rapla timetable system.

License

Notifications You must be signed in to change notification settings

dhbw-timetable/rapla-parser-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rapla-parser-js

A simple parser for the rapla timetable system. It is written in javascript and uses jsdom, request and moment.js.

Usage

The rapla-parser-js module is available via npm.

$ npm install rapla-parser-js

Afterwards you will be able to fetch your events through providing a rapla link:

var parser = require("rapla-parser-js");
var moment = require("moment");

parser.fetchWeeks(
  "https://rapla.dhbw-stuttgart.de/rapla?key=abcd1234YourRaplaLink56789wxyz",
  moment("2018-01-01"), // start date
  moment("2019-01-01"), // end date
  (events) => {
    // Do what ever you want...
    console.log(events);
  },
  (err) => {
    console.error(err);
  }
);

About

A simple javascript parser for the rapla timetable system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages