Library for fetching timetabling info for [Brunel](https://brunel.ac.uk) students.
npm install brutime


Brutime is a Node.JS library for scraping data from Brunel University's timetabling portal.
npm install --save brutime
``js`
var BruTime = require('brutime')
`js`
var timetable = new BruTime({
login: '1156145',
password: 'my password'
})
`js`
// 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
})
`js`
timetable.getMyModulesTimetable({
period: '1-12',
days: '1-7'
}, function (err, timetable) {
if (err) {
return console.error(err)
}
console.log(timetable)
})
`sh``
$ export LOGIN=YOUR_STUDENT_ID
$ export PASSWORD=YOUR_STUDENT_PASSWORD
$ npm test
MIT