Scraping Transaction Data from KBC Bank
In a previous post, I mentioned importing transactions using ledger/hledger and plain text accounting. As my former bank PTSB recently raised their fees, I decided to move to KBC. I was excited to see, as part of the open payments directive, they have a nice developer portal. I reached out to KBC’s dev team, but alas they are only accepting registered companies, who meet stringent criteria. They told me they hope to open it up soon to end users, I live in hope!
Here’s the bookmarklet:
Simply add a new bookmark to your broswer, past the code above for the URL, then log in to KBC online banking and click your bookmark. It’s still a bit rough around the edges (I didn’t cater for the pagination, so it only dumps one page of transactions). But I can now get a CSV copy of the transactions, and I keep my ledger file happy (for now)!