ratemyprofessorsapi

This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.


License
ISC
Install
npm install ratemyprofessorsapi@0.0.1-security

Documentation

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