garrettdowd / splitwise_export

Export more data from Splitwise include receipts
6 stars 0 forks source link
expenses python splitwise-export

splitwise_export

Python script to export more data from Splitwise including receipts.

Currently supports exporting expenses from groups. Default export includes; Category Cost Currency Date [Deleted by] Description Details (notes) Receipt Link

Receipts can also be downloaded into a local folder. Additionally, if you choose to include deleted expenses then there will be an additional column that specifies the user that deleted the expense.

Quickstart

Create custom script using functions in this script

To keep this simple, you should create your script in the same directory as splitwise_export.py. At the beginning of your script import this script using import splitwise_export as spwe. Then call a function with spwe.authorize() or spwe.get_group_expenses()

For example, you can run the same process as splitwise_export.py in your own script using

import splitwise_export as spwe

sObj = spwe.authorize()
expenses = spwe.get_group_expenses(sObj)
spwe.expenses_to_csv(expenses)

Functions