upstage

Utility to crawl an entry URL and produce a static copy of the site.

npm install upstage
4 downloads in the last week
16 downloads in the last month

Upstage

Utility to crawl an entry URL and produce a static copy of the site.

Install

npm install upstage

Example

The example below will crawl google.com and save each html file and all of the assets that are associated with the host.

var upstage = require('upstage');

var GOOGLE = upstage.create({
    entryurl: 'http://google.com',
    name: 'google',
    stageroot: './'
  }, function (err,site) {
    if (err) {
      console.log("ERROR creating upstage site");
      console.log(err);
      return false;
    }   

    site.start(function (err,data) {
        console.log("CALLBACK");
      }); 

  });

Comments

It's slow.

npm loves you