A website crawler that gives a readable stream of request streams.
Development of this module has been sponsored by Knowit
$ npm install crawlstream
$ npm test
Streaming API
var crawlstream = require('crawlstream');
crawlstream('mysite.com', 10)
.on('data', function(req) {
console.log(req.uri.path);
});
Callback API
var crawlstream = require('crawlstream');
crawlstream('mysite.com', 10, function(err, req) {
console.log(req.uri.path);
});
var crawlstream = require('crawlstream')
Crawl all pages under baseUrl.
Optionally supply a callback(err, req) which will receive the request stream(!) for all pages.
Copyright 2012 Knowit
MIT