*Heads'up: I am not a develloper. I have written my first line of python 3 weeks ago for my first beancount. Sorry if my question is stupid*
I am trying to import 10 years of history from one of my asset account (life insurance).
Unfortunately the account holder does not provide any usable digital statements (neither pdf, csv, ofx...) that i can use.
I have finally decided to learn to use beautifulsoup, and i have built a crude script to browse through all the pages of my account and grab the details of the 500 operations made over the last 10 years.
Luckily for me, the login system of the bank is quite basic, and i have not met any difficulty to build the script.
All the relevant information are now arranged in a huge dict
Now, i need to create the corresponding transaction in beancount.
The typical importer principle is not an ideal fit, as there is no "file" to import.
I see now several options:
- Building an importer that will be triggered by a dummy file and then run my web parser.
- From my dict, saving the data in a file, and then, build a separate importer.
- Directly create the beancount entries without using the importer process flow. (Is there some module from beancount that could help ?)
What would be the canon way to do that ?
Hi,
*Heads'up: I am not a develloper. I have written my first line of python 3 weeks ago for my first beancount. Sorry if my question is stupid*
I am trying to import 10 years of history from one of my asset account (life insurance).
Unfortunately the account holder does not provide any usable digital statements (neither pdf, csv, ofx...) that i can use.
I have finally decided to learn to use beautifulsoup, and i have built a crude script to browse through all the pages of my account and grab the details of the 500 operations made over the last 10 years.
Luckily for me, the login system of the bank is quite basic, and i have not met any difficulty to build the script.
All the relevant information are now arranged in a huge dict
Now, i need to create the corresponding transaction in beancount.
The typical importer principle is not an ideal fit, as there is no "file" to import.
I see now several options:
- Building an importer that will be triggered by a dummy file and then run my web parser.
- From my dict, saving the data in a file, and then, build a separate importer.
- Directly create the beancount entries without using the importer process flow. (Is there some module from beancount that could help ?)
What would be the canon way to do that ?
Keep up the good work! Beancount is amazing!
So, here is my method:
I have a script called "generali.py". It connect to the generali website and gather all the new operation since the latest succesful import.
Each operation is exported to a json file.
I have then a standard importer for beancount (named jsongenerali) that import each of theses operation in beancount.
My code is very crude and probably full of bugs, but until now, it works pretty well for my need. I have imported several hundreds of operations successfully.