Skip to content

Instantly share code, notes, and snippets.

View fpbrault's full-sized avatar
🐈

Felix Perron-Brault fpbrault

🐈
View GitHub Profile
@fpbrault
fpbrault / ofx2csv.py
Created August 18, 2021 20:30 — forked from whistler/ofx2csv.py
Convert QFX/OFX to CSV
from csv import DictWriter
from glob import glob
from ofxparse import OfxParser
DATE_FORMAT = "%m/%d/%Y"
def write_csv(statement, out_file):
print "Writing: " + out_file
fields = ['date', 'payee', 'debit', 'credit', 'balance']
with open(out_file, 'w') as f: