- The easiest way is
pip3 install --user git+https://github.com/karlicoss/goodrexport
.Alternatively, use
git clone --recursive
, orgit pull && git submodule update --init
. After that, you can usepip3 install --editable
. - get your API keys
Usage:
Recommended: create secrets.py
keeping your api parameters, e.g.:
user_id = "USER_ID" key = "KEY"
After that, use:
python3 -m goodrexport.export --secrets /path/to/secrets.py
That way you type less and have control over where you keep your plaintext secrets.
Alternatively, you can pass parameters directly, e.g.
python3 -m goodrexport.export --user_id <user_id> --key <key>
However, this is verbose and prone to leaking your keys/tokens/passwords in shell history.
You can also import goodrexport.export
as a module and call get_xml
function directly to get raw XML.
I highly recommend checking exported files at least once just to make sure they contain everything you expect from your export. If not, please feel free to ask or raise an issue!
You can use goodrexport.dal
(stands for “Data Access/Abstraction Layer”) to access your exported data, even offline.
I elaborate on motivation behind it here.
- main usecase is to be imported as python module to allow for programmatic access to your data.
You can find some inspiration in =my.= package that I’m using as an API to all my personal data.
- to test it against your export, simply run:
python3 -m goodrexport.dal --source /path/to/export
- you can also try it interactively:
python3 -m goodrexport.dal --source /path/to/export --interactive