1.0.7 • Published 1 year ago

magister-scraper v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

magister-scraper

This is a fixed version of JipFr's magister-scraper. Now also includes error messages that indicate incorrect username, password or hostname


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-scraper";

async function run() {
  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);
}
run();
1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago