Skip to content

VictorVation/quest-markscraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quest-markscraper

Deploy

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"
}

Usage

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}]

Examples

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"
    }
}

Installation:

One click deploy to Heroku: Deploy

Or to install locally:

  1. git clone https://github.com/VictorVation/quest-markscraper.git
  2. cd quest-markscraper
  3. npm install
  4. Replace lines 9-10 with your Quest username and password (in a string)
  5. node quest-markscraper.js
  6. Point your browser to localhost:5000/{term}

About

Mark scraper for UWaterloo Quest written in Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published