Skip to main content

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

Metadata

Release files for bbva2pandas 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bbva2pandas 1.2.0
File Size Uploaded
bbva2pandas-1.2.0.tar.gz 18.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bbva2pandas 1.2.0
File Interpreter ABI Platform
bbva2pandas-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 36.3 kB

Release files / bbva2pandas-1.2.0.tar.gz

Download URL bbva2pandas-1.2.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c3f805f0575046146285db29ae0bcb29abbc779a0823163435215b42cb562890
BLAKE2b-256 checksum
How to use checksums
c1409435ca303e268165fed0998238ea9079aa3a0935faa948dfc904f999c7aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / bbva2pandas-1.2.0-py3-none-any.whl

Download URL bbva2pandas-1.2.0-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26a3f93b5395c6df91658e09eb08e8316a288502eb4fe9f53e944ae29d3d946c
BLAKE2b-256 checksum
How to use checksums
04434094510c0a8256c64692db079f5617355e75f0736f35fb90a686d77e48b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page