0.1.1 • Published 9 years ago

sandcrawler-dashboard v0.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

sandcrawler-dashboard

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

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