Skip to content

Instantly share code, notes, and snippets.

View patrickkettner's full-sized avatar

patrick kettner patrickkettner

View GitHub Profile
@patrickkettner
patrickkettner / gist:964332
Created May 10, 2011 11:53
tinkering with node.io
var nodeio = require('node.io');
exports.job = new nodeio.Job({
input: process.argv.splice(3),
run: function(domain) {
var self = this;
try { //make sure it is a url
self.assert(domain).isUrl();
this.getHtml(domain, function(err, $) {
if (err) {
if (err === "redirects") {