Runar Ovesen Hjerpbakk

Science-based software development

Finding financial transactions in Gmail using Python

I’ve created a simple Python script that parses emails in your Gmail inbox, finds financial transactions and adds them to a simple .csv file. The .csv file is easy to import in financial software such as MoneyWiz or iBank.

Transactions

For now only iTunes transactions are parsed, but the script can easily be extended to other receipts. I think Amazon Kindle receipts are next in line.

The code is available on GitHub.

Instructions

easy_install beautifulsoup4

python ExportTransactionsFromGmailToCsv.py