Spiir-to-YNAB import script.
Get a taste of auto-sync for YNAB through Spiir & Nordic API Gateway 💵 😎
- It Downloads your transactions from Spiir 💚
- It Converts the transaction format a bit 🛑->✅
- Then it Imports them into YNAB 💙📅🙍💵📊
🧡☁️ Now with AWS Lambda Cloud support! ☁️🧡
The script is not endorsed by Spiir or YNAB and may stop working at any time.
Add the following to python/ynabi/api/credentials.py
# Spiir
spiir_username = "" # Used for logging in to Spiir: www.mine.spiir.dk/log-ind
spiir_password = ""
# YNAB
ynab_api_token = "" # Get it here => https://api.youneedabudget.com/#personal-access-tokens
ynab_budget_id = "" # Get it from budget-URL ie: `https://app.youneedabudget.com/YOUR-BUDGET-ID-IS-HERE/budget`
🛑IMPORTANT🛑
- Account names must match exactly.
- 3 Account in Spiir => 3 Account in YNAB
Examples:
Spiir Accounts | YNAB Accounts
--------------------------------------------
- Dankort | - Dankort <<< GOOD
- Savings | - Savings <<< GOOD (both accounts match)
--------------------------------------------
- Mastercard | - MCard <<< WRONG Name
- Savings | - Savings <<< WRONG (only 1 account matches)
- Python 3.8 or above
- Clone this repo.
- Do the required configuration above
py -m venv venv
pip install requests
py ./lambda/lambda_function.py
Warning: AWS/cloud setup, requires an AWS account and basic knowledge about Amazon Web Services.
- Edit Credentials and Rename YNAB bank account names as described above
- See https://github.com/duch11/ynabi-lambda/blob/master/terraform/README.md for more
See AWS documentation: https://docs.aws.amazon.com/lambda/latest/dg/python-package.html