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

Docker

Build and run with Docker (no local dependencies required):

# Build the image
make build

# Run on PDFs in the current directory
make run

# Run tests
make test

# Or use docker directly:
docker run --rm -v "$PWD:/data" bbva2pandas /data csv

Testing

# Locally
python3 -m unittest discover tests

# With Docker
make test

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.2.0.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bbva2pandas-1.2.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bbva2pandas-1.2.0.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bbva2pandas-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c3f805f0575046146285db29ae0bcb29abbc779a0823163435215b42cb562890
MD5 2918da51ba6d5ca6a49bc1e396606e3a
BLAKE2b-256 c1409435ca303e268165fed0998238ea9079aa3a0935faa948dfc904f999c7aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bbva2pandas-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bbva2pandas-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26a3f93b5395c6df91658e09eb08e8316a288502eb4fe9f53e944ae29d3d946c
MD5 f6adcd841972d52cc259ee18df5d0687
BLAKE2b-256 04434094510c0a8256c64692db079f5617355e75f0736f35fb90a686d77e48b0

See more details on using hashes here.

Supported by

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