magister-scraper
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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();

Readme

Keywords

Package Sidebar

Install

npm i magister-scraper

Weekly Downloads

1

Version

1.0.7

License

ISC

Unpacked Size

20.6 kB

Total Files

8

Last publish

Collaborators

  • niek-peters