RateMyProfApi
A small library that allows NodeJs to get data from ratemyprofessors.com.
The module uses promises rather than callbacks.
Installation
npm install ratemyprofessorsapi
Usage
var rmpGet = require('ratemyprofessorsapi').getRateMyProf;
var options = {school: "university of waterloo", professor: "lushman", numResults: 1};
rmp(options).then(console.log);
Output should be:
{
numFound: 1,
result:
[ {
firstName: 'Brad',
lastName: 'Lushman',
numRatings: 69,
rating: 3.95,
helpfulRating: 3.88,
easyRating: 3.62,
clarityRating: 4.01,
school: 'University of Waterloo',
tags: [Object],
url: 'http://www.ratemyprofessors.com/ShowRatings.jsp?tid=374845'
} ]
}
Tests
npm test