femueller / python-n26

💵 Unofficial Python client for n26 (Number 26) - https://n26.com/
MIT License
195 stars 34 forks source link

Statements pdf download #102

Closed AkaTenshi closed 3 years ago

AkaTenshi commented 3 years ago

Hello, since the statements-command already retrieves the urls of the statements I added an option to download these pdfs as well. Simply supply a directory via the '--download'-option to the statements-command and each statement gets saved there as separate pdf-file. Additionally there are some new options to filter statements by id or date. Useful if you just want to list / download a subset of the statements. The changes are fully backwards-compatible. My plan with this is to grab last months statement via cronjob or so (for archival purposes). Maybe this is useful to someone else as well. Or you can somehow merge this with the existing feature/show-statement branch :)

femueller commented 3 years ago

Hey @AkaTenshi,

I really like the idea about using the CLI for archiving statements and will look most likely at some point this week more in detail into the PR code.

Thanks for your improvement suggestion! :)

femueller commented 3 years ago

Looks good to me :+1: