Skip to main content

aib2ofx

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

NOTE: Last AIB login update (Feb' 2021) made me realise how brittle the overall machinery here is. The code that works around Web Storage API use is ugly and likely to break. The most likely road forward for this project is to decouple it into ofxstatement plugin and (maybe) Selenium-powered CSV acquisition script. The former will be easy, the latter will most likely be a nightmare to maintain and install, unless you enjoy having your banking details pipe through an arbitrary docker image.

Time will tell.

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.

Metadata

Release files for aib2ofx 0.75.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aib2ofx 0.75.0
File Size Uploaded
aib2ofx-0.75.0.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aib2ofx 0.75.0
File Interpreter ABI Platform
aib2ofx-0.75.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.7 kB

Release files / aib2ofx-0.75.0.tar.gz

Download URL aib2ofx-0.75.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9c2dd1a3298a8ea11bd5d0597d3f5acc679ba56321727168c3db1ee2d9eeab5a
BLAKE2b-256 checksum
How to use checksums
9e17d68d998e2fbeb261a073d47603a04c508fb70b4d0ee218d3b377176b32ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / aib2ofx-0.75.0-py3-none-any.whl

Download URL aib2ofx-0.75.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6de2f13878d74edcc3d702044d1a3bf87d3b0f010b78e7c6b4afa8b544d1c6e2
BLAKE2b-256 checksum
How to use checksums
6625d788669b6ccad3b9c1971f3671b1c7231a9cc4c38631a30ed6d93c941791
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.75.0 This release

2 release files

0.73.4

2 release files

0.73.2

2 release files

0.73

2 release files

0.72

2 release files

0.71.1

2 release files

0.71

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page