Skip to content

porjo/ingaugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages