InvoiceRobot is a Node.js script that uses Puppeteer for triggering invoice delivery from password-protected customer portals and member sites.
Currently, only the Deutsche Bahn website is supported.
For more information about this tool and the rationale behind it please have a look at this blog post.
In order to install and use InvoiceRobot all you have to do is clone this repository
and then run npm link
in the project's root folder.
This will create a symlink to the main index.js
script under the name invoice-robot
in your global
node_modules
folder, which in turn will allow you to run the invoice-robot
command from anywhere on your
machine.
Afterwards, you can simply run
$ invoice-robot $DB_USERNAME $DB_PASSWORD $DB_INVOICE_NUMBERS
in order for InvoiceRobot to retrieve the Deutsche Bahn invoices specified by whitespace-delimited invoice numbers
under $DB_INVOICE_NUMBERS
.
MIT License