ingaugo

package module
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ingaugo

Go Reference

A screenscraping interface to ING Australia Bank written in Go. It will drive a Chrome browser instance using the Chrome DevTools Protocol.

Usage

bank, err = ingaugo.NewBank(logger, *wsURL)
if err != nil {
	log.Fatal(err)
}

ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
defer cancel()

token, err := bank.Login(ctx, *clientNumber, *accessPin)
if err != nil {
	log.Fatal(err)
}

log.Printf("token: %s\n", token)

wsURL refers to an already running instance of Chrome browser such as headless-shell. If wsURL is nil then the package will attempt to launch Chrome browser locally by calling google-chrome executable.

CLI

A docker image is available which provides a cli for downloading transactions: docker pull ghcr.io/porjo/ingaugo:latest

Command line flags
Flags:
  -accessPin string
        Access pin
  -accountNumber value
        Account number
  -clientNumber string
        Client number
  -days int
        Number of days of transactions (default 30)
  -debug
        Output verbose logging
  -format string
        transaction output format (csv,ofx,qif) (default "csv")
  -outputDir string
        Directory to write CSV files. Defaults to current directory
  -ws-url string
        WebSsocket URL e.g. ws://localhost:9222
Example usage
docker run --rm -v /data/ing:/data:Z ingaugo \
  -clientNumber 12341234 \ 
  -accountNumber 0909090909 \
  -accessPin 1234 \
  -days 60 \
  -outputDir /data

Credit

Based on https://github.com/adamroyle/ing-au-login

Documentation

Overview

Package ingaugo provides a screenscraping interface to ING Australia Bank

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExposeFunc added in v0.1.5

func ExposeFunc(name string, f func(string)) dp.Action

Types

type Bank

type Bank struct {
	// contains filtered or unexported fields
}

func NewBank

func NewBank(logger *slog.Logger, websocketURL string) (*Bank, error)

NewBank is used to initialize and return a Bank if websocketURL is not empty, the package will connect to browser instances listing at that location otherwise, the package will attempt to launch a local browser instance. It depends on 'google-chrome' executable being in $PATH

func (*Bank) GetTransactionsDays added in v0.0.5

func (bank *Bank) GetTransactionsDays(days int, format Format, accountNumber, authToken string) ([]byte, error)

GetTransactionsDays fetches transactions for the last x days. It takes an account number and auth token

func (*Bank) Login

func (bank *Bank) Login(ctx context.Context, clientNumber, accessPin string) (token string, err error)

Login takes a context, ING client number and access pin and returns an authentication token

type Format added in v0.1.7

type Format = string
const (
	CSV Format = "csv"
	OFX Format = "ofx"
	QIF Format = "qif"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址