Skip to content

Instantly share code, notes, and snippets.

@rvowles
Created November 11, 2012 01:01
Show Gist options
  • Save rvowles/4053212 to your computer and use it in GitHub Desktop.
Save rvowles/4053212 to your computer and use it in GitHub Desktop.
var scrap = require('scrap');
var code = ''; // insert your own code
var pin = ''; // insert your own pin
scrap('http://www.elgar.govt.nz/patroninfo', function(err, $) {
scrap({url:'http://www.elgar.govt.nz/patroninfo/patform', method:'post', form:{'code':code, 'pin':pin}}, function(err, $) {
$('.patFuncTitle label a').each(function(idx, elem) {
console.log("Item " + $(elem).text());
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment