A handy terminal dashboard plugin for sandcrawler.
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
.npmignore
README.md
defaults.json
demo.gif
index.js
package.json

README.md

sandcrawler-dashboard

A handy terminal dashboard displaying advanced information about one of your sandcrawler spiders.

demo

Installation

You can install sandcrawler-dashboard through npm:

npm install sandcrawler-dashboard

Usage

var sandcrawler = require('sandcrawler'),
    dashboard = require('sandcrawler-dashboard');

var spider = sandcrawler.spider('MyFancySpider')
  .use(dashboard())
  .url('http://nicesite.org')
  .scraper(function($, done) {
    done(null, $('title').text());
  })
  .run();

Options

  • logger ?object: Any options to pass to the sandcrawler-logger used by the dashboard internally. Possible options can be found here.

Example

var sandcrawler = require('sandcrawler'),
    logger = require('sandcrawler-logger');

var spider = sandcrawler.spider('MyFancySpider')
  .use(dashboard({logger: {color: 'red'}}));

License

MIT