Skip to content

Instantly share code, notes, and snippets.

View clu3's full-sized avatar

Steve Tran clu3

  • Internet
  • Knowledge Tree
View GitHub Profile
@subelsky
subelsky / casperjs_example.js
Created August 8, 2012 18:51
Webscraping with CasperJS, PhantomJS, jQuery, and XPath
var system = require('system');
if (system.args.length < 5) {
console.info("You need to pass in account name, username, password, and path to casperJS as arguments to this code.");
phantom.exit();
}
var account = system.args[1];
var username = system.args[2];
var password = system.args[3];