This projects fetches:
- The latest "Extracto de tarjeta de crédito" for Banco Regional
- More options coming soon...
I created this project because I'm tired of manually downloading those documents for my accountant, and because of that would constantly submit late paying a fine.
It uses Puppeteer and runs a headless browser and gets the PDF which it saves in docs/
. All the code is run locally, so no private information is sent to anyone. You can always verify the source code, and I encourage you to do so.
- Node.js (version >= 14.x)
- TypeScript (version >= 4.x)
- npm or yarn package manager
To set up the project, follow these steps:
- Clone the repository:
git clone https://github.com/kennym/py-automate-finances.git
- Navigate to the project directory:
cd py-automate-finances
- Install dependencies
yarn
- Copy
.env.template
to.env
and update the values there
Don't surround your variables in quotes.
REGIONAL_DOC
: Cédula e.g.:1742422
REGIONAL_PASS
: passwordMES
: month in numeric format, e.g.:3
for March
The TypeScript compilation is automatically handled when executing the script.
yarn descargar-extracto-tc-regional
Will save your extract in the folder docs
If you encounter any issues feel free to email me or create a GH issue