bopa-fetcher
Description
bopa-fetcher is a Python library for programmatic access to the official bulletins of the Principality of Asturias (BOPA). It allows users to search, retrieve, and analyze bulletin summaries and individual articles in a structured manner.
Why bopa-fetcher?
BOPA (Boletín Oficial del Principado de Asturias) is the official gazette of the region of Asturias, Spain. Researchers, legal professionals, and journalists often need to search, download, and analyze large volumes of legislative and administrative documents. bopa-fetcher provides a simple, programmatic interface to:
- Retrieve bulletin summaries and articles as structured Python objects.
- Search across date ranges for both bulletins and individual articles.
- Export data to dictionaries for integration with data analysis pipelines (pandas, NumPy, etc.).
- Avoid manual scraping by handling HTML parsing and URL construction internally.
Main features
- Legal research: Download and analyze official bulletins for a specific time period to track legislative changes.
- Data journalism: Collect structured data from BOPA for investigative reporting on regional governance.
- Policy analysis: Extract and categorize dispositions by origin (council, council board, presidency, etc.) for quantitative studies.
- Archive building: Build reproducible datasets of Asturian official publications for academic research.
Quick Start
Installation
Install from PyPI:
pip install bopa-fetcher
Basic Usage Example
Fetch acts for a publication date:
from bopa.api import Client
client = Client()
# Get the bulletin summary for 29/12/2023
bulletin = client.get_bulletin(date="29/12/2023")
print(bulletin.to_dict())
# get specific article by code
article = client.get_article(cod="2023-11737", date="29/12/2023")
print(f" article: {article.to_dict()}")
Use Case Examples
The repository includes runnable scripts with examples and use cases of the library. These scripts can be found in the scripts/ directory.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For any questions or suggestions, feel free to reach out to the corresponding author:
- Author: Diego González Suárez, Noelia Rico, Irene Díaz
- Email: gonzalezsdiego@uniovi.es, noeliarico@uniovi.es, sirene@uniovi.es
Acknowledgements
The authors gratefully acknowledge the financial support of the Asturian Agency for Science, Business Competitiveness and Innovation (SEKUENS) under Grant Agreement No. SEK-25-GRU-GIC-24-018. Noelia Rico and Irene Díaz also acknowledge support from the European project SCIMIN-CRM (Grant Agreement No. 101177746) and the funding from the Spanish Ministry of Science and Innovation through project PID2022-139886NB-I00.
Citation
If you use bopa-fetcher in your research, please cite it. Citation information is available in the CITATION.cff file.
Metadata
Release files for bopa-fetcher 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bopa_fetcher-0.1.8.tar.gz | 16.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bopa_fetcher-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.2 kB
Release files / bopa_fetcher-0.1.8.tar.gz
| Download URL | bopa_fetcher-0.1.8.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b88f2dae67c6d0dd22c614a3204440a15b50e3d1f0d71b0f1e108bd76ffe7ed4
|
|
BLAKE2b-256 checksum How to use checksums |
9189592b572e3f4f77fac4a56b4a0a5e03a0f5ddc90f18903af115815740b08a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.
Transparency logRelease files / bopa_fetcher-0.1.8-py3-none-any.whl
| Download URL | bopa_fetcher-0.1.8-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8513b2d4dce8ab001d741861dffe31057d25bd228350026704010956a0fa8279
|
|
BLAKE2b-256 checksum How to use checksums |
736224c9ac20721e6a5ffc577a08622f8e307d2287ad14d7b8b21ed3b17d430e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.
Transparency log