[weboob] [RFC PATCH] New feature to download bank statements
benoar at dolka.fr
Sun Mar 31 21:40:17 CEST 2019
I wanted to download OFX statements that my bank offer directly, instead
of building it by scraping the HTML pages. I coded the following patch,
testing it on creditcooperatif, which uses caissedepargne backend. It
works but I would like some feedback on it: I made it mainly by copying
other modules and no thoroughly thinking it.
One big problem is that I think I broke the transfer feature: the
StatementAckPage matches the same string as TransferSummaryPage, and I
could not find another way to match for now; my feature works because of
the priority of my page which is instanciated earlier (which is a *very
strange* behavior to understand).
Also, the raw formatter way of displaying the OFX is a bit hackish.
Enhancements could be to have an iterator over all accounts, and also
specifycing start/end dates. I also suppose there is some generic
downloading code on the site that could be more cleanly abstracted.
Thanks for your feedback.
More information about the weboob