Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (26 sloc) 1.002 kB

node-pagerank

A library for looking up the Google PageRank of any given web page. Try a live example at http://pagerank.nfriedly.com/

Build Status

Installation

npm install --save pagerank

Usage

var getPageRank = require('pagerank');

// pageRank will either be a number or null
getPageRank('http://example.com/', function(error, pageRank) {
    console.log(error, pageRank);
});

Breaking changes:

  • Starting with version 1.3, pagerank will return/emit an error event when a non-200 status code is received from Google. (Previously it gave a null pagerank, but no error.)
  • Starting with version 2.0, pagerank is no longer a readable stream / event emitter, it can only be used via callbacks.

Or, install it globally

npm install -g pagerank

and use it on the commandline:

    pagerank http://example.com/
Jump to Line
Something went wrong with that request. Please try again.