🗓️ Scrape timetabling info for Brunel Uni students.
Node.js module for scraping data from Brunel University's timetabling portal.
$ yarn add brutime@bencevans/brutime
# or
$ npm install --save github:bencevans/brutime
import BruTime from "brutime";
const bruTime = new BruTime();
// Creates an instance of puppeteer/chromium
await bruTime.init();
// You can also pass in a puppeteer options object for example the following
// to show the browser window and enable devtools.
await bruTime.init({
headless: false,
devtools: true,
});
Both the student id/staff login and password should be strings.
try {
await bruTime.login(studentId, password);
} catch (err) {
console.error(err);
}
TODO: Look in example.js in the meantime.
TODO: Look in example.js in the meantime.
$ export BRUNEL_ID=YOUR_STUDENT_ID
$ export BRUNEL_PASSWORD=YOUR_STUDENT_PASSWORD
$ npm test
MIT © Ben Evans