Skip to content

Instantly share code, notes, and snippets.

@jonmarkgo
Forked from ariamoraine/gist:3405739
Created August 20, 2012 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonmarkgo/3405867 to your computer and use it in GitHub Desktop.
Save jonmarkgo/3405867 to your computer and use it in GitHub Desktop.
var nodeio = require('node.io');
var methods = {
input: false,
run: function() {
this.getHtml('http://www.google.com/', function(err, $, data, headers) {
$('a').each('href', function (href) {
//Print all links on the page
console.log(href);
});
});
}
}
exports.job = new nodeio.Job({timeout:10}, methods);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment