An automation for the rest of us.
A collection of "automations" to retrieve information from services without a public API. Think of a poor man's open source Belvo.
A bunch of services we use could really benefit from having a public API. The easiest way to do that is through UI automation.
-
Install the dependencies:
yarn install
-
Create your
.env
file, you can use.env.example
as guidance. -
Export your environment variables:
export $(cat .env | xargs)
-
Now you're able to run the service automations:
node allianz-example.js
Allianz summary: {
policyAmount: '123456.78',
}
node bbva-example.js
BBVA summary: [
{ title: 'Cuenta de nómina • 01234', amount: '234567.89' },
{ title: 'Fondos de Inversión • 98765', amount: '98765.43' },
{ title: 'Pagaré • 54321', amount: '$5432.10' }
]
node cetesdirecto-example.js
CetesDirecto summary: {
instruments: [
{ name: 'BONDDIA', value: '123.45' },
{ name: 'CETES', value: '9876.54' },
{ name: 'REMANENTES', value: '34.56' }
],
instrumentsTotal: '12345.98'
}
node infonavit-example.js
Infonavit summary: {
savings: [
{ type: 'Subcuenta de Vivienda 1997', amount: '1234567.98' },
{ type: 'Subcuenta de Vivienda SAR 1992', amount: '0.00' },
{ type: 'Fondo de ahorro 1972', amount: '0.00' }
]
}
node n26-example.js
N26 summary: { balance: '9876.54' }