Create a gist now

Instantly share code, notes, and snippets.

#!/usr/bin/env node
var zombie = require('zombie'),
argv = process.argv.slice(2), // get rid of the leading "node" arg
user = argv[0],
pass = argv[1];
zombie.visit('', {
debug: true,
userAgent: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6'
}, function (err, browser) {
if (err) { return error(err); }
.fill('#user', user)
.fill('#passwd', pass)
.pressButton('#sign_in', function (err, browser) {
if (err) { return error(err); }
function error(message) {
process.stderr.write(message.toString() + '\n');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment