January 31, 2016

How to Track Expenses

My bank gives me email on every transaction. Because I use nmh for archiving mail, I can parse the messages to determine how much I've spent. The script above collects the reports from the mh folder I use for receipts and sums the amounts up, finally spitting out a locale-aware total amount in the inbox. And in 41 lines of python. Excellent... Future improvements include ripping out the access to messages and just fetching the amounts directly through Yodlee or similar. Watch this space.

No comments:

Post a Comment