Created
November 11, 2012 01:01
-
-
Save rvowles/4053212 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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