here is a modified version of your script that should allow you to login properly and initiate a search.. in order for us to setup result parsing, we'll need either access to the site (an invite) ... (or if we must, we can spend a bunch of time dealing with http logs).
what would be easier for you?