| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
How to install
$ npm install crawler
How to test
$ node test/simple.js $ node test/testrunner.js
For now just check my lightning talk slides
Help & Forks welcomed! This is just starting for now.
Rough todolist :
var Crawler = require("node-crawler").Crawler;
var c = new Crawler({
"maxConnections":10,
"callback":function(error,result,$) {
$("#content a:link").each(function(a) {
c.queue(a.href);
})
}
});
// Queue a list of URLs, with default callback
c.queue(["http://jamendo.com/","http://tedxparis.com", ...]);
// Queue URLs with custom callbacks
c.queue([{
"uri":"http://parisjs.org/register",
"method":"POST",
"callback":function(error,result,$) {
$("div:contains(Thank you)").after(" very much");
}
}]);
// Queue some HTML code directly without grabbing (mostly for tests)
c.queue([{
"html":"<p>This is a <strong>test</strong></p>"
}]);
0.1.0
| Back | FazBrowse Home | New Git URL |