Created
August 20, 2012 16:52
-
-
Save ariamoraine/3405739 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nodeio = require('node.io'); | |
var methods = { | |
input: false, | |
run: function() { | |
exports.job = new nodeio.Job({timeout:10}, methods); | |
this.getHtml('http://www.google.com/', function(err, $, data, headers) { | |
$('a').each('href', function (href) { | |
//Print all links on the page | |
console.log(href); | |
}); | |
}); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment