sandcrawler-dashboard

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i sandcrawler-dashboard

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • yomguithereal