Warning! This repo is not in a working state. Several changes need to be made in order for this to run.
A collection of scripts which parse and aggregate the data from various different bank and credit card statement sources and upload them to a Google Sheet.
- Install Python 3
- Install any remaining dependencies using pip.
- Go to this google sheet and make a copy.
- In the
helper_google_sheets.py
file, replace the values of_c_and_t_id
and_all_data_id
with the GIDs of theC&T
andAll Data
tab in your copied Google sheet. - Go to Google Developer Console: https://console.developers.google.com
- New Project -> Activate Drive and Sheets API
- Create credentials
- service account -> name + role=editor
- create key and download json, reaname it as
finance-scripts-auth.json
and replace the existing file in this folder.
- Download the statements from any of the supported bank websites (each bank's individual steps are written below).
- Save these statements in the
statements
folder. - In the
helper_parser.py
file, you need to replace the values in theif
statements with the format of your own report files. - Run
_main.py
. This will import all the data from the statements in the folder and merge it with the data from the Expense tracking Google Sheet. The script will then upload back all this data to the spreadsheet.
- Instead of running the
_main.py
file, you can also run individual parsers to debug if something breaks.
- Enquire
- A/c Statement - Last 5 years
- Specific period: Last month
- Excel format
- Cards
- Credit Cards
- Enquire
- View Statement
- Last month
- Statements > Account Statements
- Recent Transactions > Last Month
- Download Statements > Download > CSV
- Rename add random number at end
- View Statement
- Update transaction date / Select Transaction Period
- View Detailed Statement
- Download details as: XLS file.