Skip to main content

Download data from aib.ie in OFX format

Project description

aib2ofx

...or how to grab transaction data out of AIB's online interface, and format it into OFX file.

Installation

python3 -mvenv aib2ofx
source aib2ofx/bin/activate
pip3 install aib2ofx

This will create a virtualenv for aib2ofx, fetch its code then install it with all dependencies. Once that completes, you'll find aib2ofx executable in the bin directory of this new virtualenv.

Usage

Create a ~/.aib2ofx.json file, with AIB login details. Set the permission bits to 0600 to prevent other system users from reading it.

touch ~/.aib2ofx.json
chmod 0600 ~/.aib2ofx.json

It has a JSON format, single object with one key per AIB login you want to use.

{
    "bradmajors": {
        "regNumber": "12345678",
        "pin": "12345"
    }
}

The fields are as follows:

  • regNumber

    Your AIB registered number.

  • pin

    Your five digit PIN.

You can put more than one set of credentials in the file; the script will download data for all accounts for all logins.

{
    "bradmajors": {
        "regNumber": "12345678",
        "pin": "12345"
    },
    "janetweiss": {
        "regNumber": "87654321",
        "pin": "54321"
    }
}

Note that there's no comma after the last account details.

Once you've prepared that config file, run:

aib2ofx -d /output/directory

The script should connect to AIB, log in using provided credentials, iterate through all accounts, and save each of those to a separate file located in /output/directory.

Guarantee

There is none.

I've written that script with my best intentions, it's not malicious, it's not sending the data anywhere, it's not doing anything nasty. I'm using it day to day to get data about my AIB accounts into a financial program that I use. It should work for you as good as it works for me. See the LICENSE file for more details.

Development

aib2ofx works only with python 3.

In order to set up a dev environment clone the repository, get poetry and run poetry install. This will create a virtualenv with all dependencies installed. You can activate it with poetry shell.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aib2ofx-0.70.0a2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

aib2ofx-0.70.0a2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file aib2ofx-0.70.0a2.tar.gz.

File metadata

  • Download URL: aib2ofx-0.70.0a2.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.3 Linux/4.19.104-microsoft-standard

File hashes

Hashes for aib2ofx-0.70.0a2.tar.gz
Algorithm Hash digest
SHA256 ba094b43231f3ef1e8ecfa52dbb8e086fbb3e6cbb3a410706d062e11b1d4cdda
MD5 8454901dd2cb558c7a8ca4b7bc78d6c3
BLAKE2b-256 2155b626139690c19f0e7d6ff6eb7e19222cb5eee7d141513c45f1779fbff8b0

See more details on using hashes here.

File details

Details for the file aib2ofx-0.70.0a2-py3-none-any.whl.

File metadata

  • Download URL: aib2ofx-0.70.0a2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.3 Linux/4.19.104-microsoft-standard

File hashes

Hashes for aib2ofx-0.70.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3324aa4a642c31c67475ec29b26668edbfd9e7201d851bcafbe1e6113f4dd16
MD5 9768f7688054afb2c2f7764f3c5cc028
BLAKE2b-256 c4502567790417393223270887149746b910f2e7d86926c29ae7786bfcd9a740

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page