Overview
This guide will walk you through the basic usage of bormeparser, from parsing BORME PDF files to extracting company data and exporting to JSON.Make sure you have installed bormeparser before following this guide.
Basic Workflow
Parse a BORME PDF file
The main entry point is the The
parse() function. You need to specify the file path and the section type:parse() function returns a Borme object containing all the parsed data.Extract company announcements
Each BORME file contains multiple announcements (anuncios), one per company:
Extract acts and company data
Each announcement contains one or more acts (actos) representing registry actions:Acts can be text-based (like company constitution) or cargo-based (appointments):
Working with Provinces and Sections
bormeparser provides convenient enums for provinces and sections:Downloading BORME Files
bormeparser can automatically download BORME files from the official source:Working with BORME XML
BORME XML files contain daily summaries with metadata and download URLs:Loading from JSON
You can also load previously exported JSON files:Complete Example
Here’s a complete example that downloads, parses, and exports BORME data:Type Signatures
bormeparser provides type information for better IDE support:Next Steps
Now that you know the basics, you can:- Process multiple BORME files in batch
- Build databases of company information
- Track changes in corporate governance over time
- Integrate BORME data into your applications