Skip to content

Instantly share code, notes, and snippets.

@thomaschaaf
Last active August 29, 2015 14:17
Show Gist options
  • Save thomaschaaf/c8f257bb8bc5ce03e48e to your computer and use it in GitHub Desktop.
Save thomaschaaf/c8f257bb8bc5ce03e48e to your computer and use it in GitHub Desktop.
Postbank Scaper CasperJS PhantomJS node.js
casper = require('casper').create()
casper.start "https://banking.postbank.de/rai/login", ->
loginInfo =
'nutzername': "12345678"
'kennwort': "XXXXX"
@fill "form.form-cn", loginInfo, true
casper.then ->
@click ".ng-transactions a"
casper.then ->
# dont ask why the csv link has an action-pdf class
@download(@getElementAttribute("div.tbl-sales-options a.action-pdf", "href"), "yes.csv")
casper.run ->
@echo "done"
@exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment