Mark scraper for UWaterloo Quest written in Node.js. A HTTP GET request to the server returns a JSON object containing the grades.
- If all grades are available:
{
"term": "Fall 2013",
"grades": {
"CHE 102": 95,
"ECE 100A": 100,
"ECE 105": 89,
"ECE 140": 95,
"ECE 150": 99,
"MATH 117": 92
}
}- Otherwise:
{
"term": "Fall 2013"
}To get the grades, simply send the following request, where {term} is the term that you want grades for - in the format one letter, followed by the last two digits of the year e.g. W13, F13. It's optional, if you leave it blank then you'll get the grades for the third oldest term.
GET /[{term}]
Get marks from most recent term:
>> GET /
<< {
"term": "Fall 2013",
"grades": {
"CHE 102": "95",
"ECE 100A": "100",
"ECE 105": "89",
"ECE 140": "95",
"ECE 150": "99",
"MATH 117": "92"
}
}
Get marks from Fall 2014:
>> GET /f14
<< {
"term":"Fall 2014",
"grades": {
"ECE 200A": "CR",
"ECE 205": "99",
"ECE 222": "98",
"ECE 240": "99",
"ECE 250": "97",
"ECE 290": "100",
"MATH 215": "100"
}
}
Or to install locally:
git clone https://github.com/VictorVation/quest-markscraper.gitcd quest-markscrapernpm install- Replace lines 9-10 with your Quest username and password (in a
string) node quest-markscraper.js- Point your browser to
localhost:5000/{term}
