Node.js module for scraping data from Brunel University's timetabling portal.
$ npm install --save brutime
const BruTime = require("brutime");
// Create an instance of BruTime with your login/password.
var timetable = new BruTime({
login: "1156145",
password: "my password",
});
// List Enrolled Modules
timetable.listMyModules(function (err, myModules) {
if (err) {
throw err;
}
// myModules === ['CS2001', 'CS2002', 'CS2003']
console.log("My Modules: " + myModules.join(", "));
// Prints: CS2001, CS2002, CS2003
});
timetable.getMyModulesTimetable(
{
period: "1-12",
days: "1-7",
},
function (err, timetable) {
if (err) {
return console.error(err);
}
console.log(timetable);
}
);
$ export LOGIN=YOUR_STUDENT_ID
$ export PASSWORD=YOUR_STUDENT_PASSWORD
$ npm test
- bencevans/brugrade - Brunel's undergraduate marking/grade bounds dataset and byMark(grade) search.
MIT ยฉ Ben Evans