nicescraper
v1.0.2
Published
Basic Web scraper for NodeJS (request, phantomjs & cheerio)
Downloads
4
Readme
#nicescraper
Basic Web scraper for NodeJS (request, phantomjs & cheerio).
##Example
var niceScraper = require('./index.js');
var script = function($){
var result = {
'pageTitle': $('head title').html()
};
return result;
};
var scraper = new niceScraper('http:', 'www.google.com', ['/'], script, {
stepDone: function(url, result, that, index){
console.log('STEP DONE RESULT');
console.log(result);
},
stop: function(error){
console.log('STOP');
console.log(error);
}
});
scraper.start();
##Dependencies