README
¶
ingaugo
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.
Credit
Documentation
¶
Overview ¶
Package ingaugo provides a screenscraping interface to ING Australia Bank
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bank ¶
type Bank struct {
// contains filtered or unexported fields
}
func NewBank ¶
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