Skip to main content

Parse BBVA monthly reports directly to a Dataframe

Project description

BBVA reports extractor

Checked with mypy Made with Python

Library + script to extract your bank account movements from the pdf reports that BBVA provides each month. Export it to csv or sqlite.

Dependencies

The following libpoppler dependencies are needed for pdftotext:

sudo apt install build-essential libpoppler-cpp-dev pkg-config python3-dev

Downloading the reports

In bbva.es, login and go to Posición global > Cuentas y Tarjetas > Ficha. Then click Operaciones > Extracto mensual cuentas. Ready to go!

Using the libray

Just provide the filepath:

import bbva2pandas
dataframe = bbva2pandas.Report('myfile').to_df()

Running the script

The provided script loads all the PDFs in the provided directory and generates a CSV/sqlite file

usage: bbva2pandas [-h] [--output_filename OUTPUT_FILENAME] directory {csv,sqlite}
bbva2pandas: error: the following arguments are required: directory, output_format

Testing

Run

python3 -m unittest discover tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bbva2pandas-1.1.3.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

bbva2pandas-1.1.3-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file bbva2pandas-1.1.3.tar.gz.

File metadata

  • Download URL: bbva2pandas-1.1.3.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for bbva2pandas-1.1.3.tar.gz
Algorithm Hash digest
SHA256 8e567f1b69066d07fa955d7e3a427529e4687ec43e09fe125d6627e1e81ae14f
MD5 d8a524dbf73e0316d908e28bc7fea2ba
BLAKE2b-256 d6be72a7a9f516bdc311a5dd1cf086b31e6a4a6a6614d0932c4956e4afdae151

See more details on using hashes here.

File details

Details for the file bbva2pandas-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: bbva2pandas-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for bbva2pandas-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 31a8501ade21d43d188f330f5643bb4772d95c99bff8e872d3419246ca4e6db7
MD5 42e98337a646a5e463a3e1450f26986b
BLAKE2b-256 acbb77be71268810ac932188715e049e83bcc609e371dd46feb6fd876bbebca8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page