Runar Ovesen Hjerpbakk

Software Philosopher

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.


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.


easy_install beautifulsoup4

  • Add Gmail username, password and a financial account name
  • Run the script