1.0.2 • Published 10 years ago

waff v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

waff

simple crawler with cheerio

DEPENDENCIES

https://github.com/mooz/node-icu-charset-detector#installing-icu

HOW TO USE

var waff = require('waff');

var crawler = waff({
    concurrency: 20,
    timeout: 10 * 1000,
    callback: function(err, response, $) {
        if (err) return console.log(err);
        console.log($('title').text());
    }
});

// console.log(crawler);

crawler.queue('http://www.baidu.com/');
crawler.queue(['http://www.baidu.com/', 'http://baidu.com/']);