Python interface for ING Bank internet banking.
Provided class enables very simple interface to read data from API provided by ING Bank. This service is currently deployed in Czechia where the library has been tested. The same system seems deployed also in Spain where it's originated.
For the usage the requirements.txt
must be installed to the
environment.
pip3 install -r requirements.txt
Before using the library you should log in into the Internet Banking.
When the login process is done and you're successfully logged in open
the developer console of the browser. You should see there network
requests and investigate the requests going to bank API. It should
contain the /rest
part in the path. Then, find Request headers
and
there the Cookie
header. Copy the whole value of the header
and use it to set up the IngClient
.
Keep in mind that you should stay logged in when you would like to run the script.
from ing_api import IngClient
# set up cookie
cookie = 'copied value of Cookie header from browser'
api = IngClient(IngClient.Country.CZ, cookie)
client = api.client()
products = api.products()
In the terminology of the API the transactions are called movements.
product_id = 'uuid'
from_date = datetime.date(1970, 1, 1)
movements = api.movements(product_id, from_date=from_date)
print(movements['count'])
Arguments are:
product_uuid
- UUID of selected productfrom_date
- starting date (required)to_date
- ending date of selection (default is today)limit
- number of items which should be loaded once - pagination (default: 25)offset
- offset for pagination (default: 0)
The information provided in the list of movements is not complete. For the detailed information the detail should be called.
movement = api.movement('uuid')
The ING Bank Python Client is free and open-source software under MIT License.