JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q20140F
  • License ISC

Magister 6 Scraper

Package Exports

  • magister-scraper
  • magister-scraper/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (magister-scraper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

magister-scraper

This is a fixed version of JipFr's magister-scraper.


This library handles login in and sending GET requests with the relevant cookies and such. The endpoints are the same as in the official client and you'll have to enter those yourself.

Example

Getting your schedule would look something like this

import Magister from "magister";

(async () => {
    let client = await Magister.new({
        username: "jouw_id",
        password: "jouw_wachtwoord",
        hostname: "school.magister.net"
    });

    let url = `https://${client.hostname}/api/personen/${client.userId}/afspraken`;
    let data = await client.get(url);

    console.info(data);

})();