This Empresite scraper tutorial shows how to turn known Empresite-elEconomista company detail URLs into a structured CSV with the Empresite Detail Scraper template for UScraper. You will import the workflow, add company URLs, confirm the export path, run a small validation batch, and review the output before using it for Spanish company research.
Before you start
Prerequisites and scope
You need UScraper installed as a local desktop app, a small list of Empresite company detail URLs you are allowed to process, and a folder where the CSV can be saved. This guide is for company profiles, not search result pages, province directories, paid reports, account areas, or CAPTCHA bypass.
If you do not already have detail URLs, collect them first from search or listing pages. The companion Empresite Listings Scraper is the discovery step; this detail scraper is the enrichment step after you know which company profiles matter.
Treat the browser as the source of truth. If the page shows a prompt, verification screen, redirect, or missing field in the browser, the CSV should not be trusted until you handle that state.
Workflow anatomy
How the Empresite detail scraper works
The workflow is intentionally direct: Navigate -> Wait for Page Load -> Dismiss consent best-effort -> Wait for company metadata -> Wait for Razon social -> Structured Export -> Loop Continue. The Navigate block owns the input list. Structured Export owns the CSV shape. Loop Continue moves to the next URL.
| Block | What it does | What to check |
|---|---|---|
| Navigate | Opens each company detail URL from navigate.urls | Replace the sample URL with approved profile URLs. |
| Wait blocks | Wait for page load, company metadata, and Razon social | If a row is empty, confirm the waits reached the actual profile page. |
| Inject JavaScript | Attempts to dismiss cookie consent buttons | Watch the first run in the browser when consent UI changes. |
| Structured Export | Writes the configured columns to CSV in append mode | Confirm filename, save folder, headers, and column values. |
| Loop Continue | Advances through the URL list | Keep it at the end of the loop body. |
Runbook
How to scrape Empresite company data to CSV
Add company detail URLs
Replace the sample URL in Navigate with Empresite company profile URLs. Add multiple URLs to create one combined CSV.
Confirm the save folder
In Structured Export, keep empresite-detalles-de-empresa-scraper.csv or rename it for the project. Confirm headers and append mode.
Run one URL
Run a single company first, watch the browser, and confirm that consent, redirects, and waits behave as expected.
Run the batch and inspect
Add the remaining URLs, run the workflow, then compare several CSV rows against live pages before using the data.
Output
Empresite to CSV field reference
The stock template exports nine columns. These field names come from the JSON workflow, and they are the contract you should validate after the first run.
| CSV fields | Meaning | Validation tip |
|---|---|---|
empresa, cif | Company identity and Spanish tax identifier | Check for redirects to generic directory pages. |
telefono, fax, email, web | Contact fields when Empresite exposes them | Blank can be legitimate; do not infer missing values. |
domicilio_social | Registered or displayed address | Spot-check province and street text. |
forma_juridica, actividad | Legal form and activity summary | Watch for label changes in Spanish text. |
Validation
Validate the export before using it
Validation is part of the scraping workflow, not cleanup after the fact. Open the CSV and the live Empresite page side by side. Check the first row, one middle row, and the final row, especially rows where telefono, email, web, or actividad is blank.
| Symptom | Likely cause | Fix |
|---|---|---|
| All fields are blank | Page did not reach a company profile | Open the URL manually and check for CAPTCHA, redirect, or blocking. |
empresa is filled but contact fields are blank | Empresite did not expose those fields on that profile | Keep the row, but do not infer missing values. |
cif or forma_juridica shifted | The page label order changed | Update the Structured Export extraction pattern. |
| Rows repeat | Duplicate URLs or a restarted append-mode run | Deduplicate by URL or start a fresh CSV for reruns. |
| Consent prompt remains visible | Cookie UI wording changed | Adjust the consent click step or dismiss it manually during testing. |
Alternatives
Empresite scraper alternative options
UScraper is the right fit when the job is analyst-led, CSV-first, and supervised in a local desktop app. Octoparse fits hosted no-code scraping. Apify or custom scripts fit API-driven datasets and developer-owned infrastructure. Licensed providers such as eInforma may be better when the requirement is contractual business data rather than page-level extraction.
Use the UScraper Empresite detail template for a reviewable spreadsheet workflow, and use a hosted or licensed route when you need scheduled infrastructure, API delivery, or formal data rights.
FAQ
Empresite detail scraper FAQ
Empresite pages may be publicly accessible, but automated collection can still be limited by terms, robots directives, database rights, rate controls, privacy rules, and local law. Keep runs modest, avoid bypassing controls, and get legal review before redistribution.
Next step
Download the Empresite detail scraper template
When you are ready to run the tutorial, download the JSON from Empresite Detail Scraper and keep this article open for validation. For broader company discovery, start with Empresite Listings Scraper, browse all UScraper templates, or return to the UScraper blog for more CSV export tutorials.

