Limited Time — Lifetime Access for just $99. Lock in before prices rise.

UScraper
Tutorials

How to Scrape Kompass Directory Listings to CSV

Scrape Kompass directory listings to CSV. Export names, locations, supplier categories, phone, website and detail URLs with UScraper's desktop app.

UScraper
June 25, 2026
10 min read
#how to scrape kompass#kompass scraper tutorial#kompass business directory scraping#kompass scraper tools#kompass scraper alternative#octoparse vs apify kompass#kompass directory scraper#kompass annuaire des entreprises scraper#kompass to csv#local desktop app
How to Scrape Kompass Directory Listings to CSV

This Kompass scraper tutorial shows how to turn a Kompass France listing page into a local CSV export with the Kompass Directory Scraper for Company CSV Export. You will set the directory URL, choose an export path, validate rows, and troubleshoot missing phone or website fields before scaling.

Before you start

Prerequisites for a Kompass scraper tutorial

You need the UScraper local desktop app, the Kompass listing scraper template, and one Kompass France category, search, or directory result URL your team is allowed to review. The bundled example starts from a sector page, but the page type matters more than the topic: this workflow expects repeated company result cards, not a single detail profile.

Open the target URL manually first. Confirm that company cards load, pagination exists, and target fields are visible. If the page shows a block, login prompt, or sparse cards, solve access before automating.

Treat automation as a collection method, not as permission. Review Kompass terms, database-rights risk, privacy obligations, and local rules before using exported company data.


Workflow map

How the Kompass business directory scraper works

The JSON workflow is a listing-page scraper. It does not scrape detail pages deeply, enrich records from company websites, or guarantee every hidden contact field. Its job is narrower: capture visible listing cards and preserve the detail URL for follow-up review.

Navigate -> Wait for Page Load -> Wait for .rowTop
  -> Reveal visible contact controls -> Sleep
  -> Structured Export -> Check next page
  -> Click next -> Wait -> Repeat

The row selector is .rowTop, matching the company-result wrappers used by the template. Structured Export appends rows, so every page in the pagination loop writes into one CSV. The next-page block checks common pagination selectors, including French "suivant" labels.

Block groupWhat it doesWhat to check
Page loadOpens the starting Kompass URL and waits for listing rowsThe URL is a listing page and .rowTop exists after load.
InteractionClicks visible phone or contact controls where presentThe clicks do not trigger a gate or change page context.
Data extractionExports nine configured columns from each cardField names match your spreadsheet or CRM import rules.
Pagination loopChecks for a next link and returns to export after each clickThe loop stops on the final page and does not duplicate rows.
Control flowEnds when no next-page selector existsAppend mode leaves one combined CSV for the run.

Runbook

How to scrape Kompass directory listings to CSV

1

Choose a narrow listing URL

Start with one Kompass France category or search-results page. Keep the source URL, business purpose, run owner, and date.

2

Import the UScraper template

Download the workflow from the template page and import it into the UScraper local desktop app.

3

Replace the Navigate URL

Replace the bundled sector URL with your approved listing URL. Keep the page-load and element-wait blocks.

4

Set the export folder

In Structured Export, confirm kompass_annuaire_des_entreprises_scraper_liste.csv, includeHeaders, append mode, and a project-specific save location.

5

Run, inspect, then expand

Run the first page, compare rows against live cards, then allow pagination after the output shape is reliable.

Append mode is useful with pagination, but it can mix test and production rows. Create a dated export folder or delete the test CSV before a larger batch.


Output

What the Kompass data extractor exports

There is no bundled CSV sample, so use the JSON workflow definition as the authoritative export shape. The scraper writes nine columns:

CSV columnMeaningValidation note
url_entreeSource listing URL for the rowUseful for tracing which category page produced the company.
nomCompany name from the listing card headingCheck that "Entreprise certifiee" labels are removed.
lieuLocation line, usually city and France markerBlank or variant location text may require country-specific tuning.
presentationShort company description from the cardWatch for boilerplate if the card layout changes.
fournitureSupplier category lines after "Fournisseur de"Multiple categories are joined with a pipe separator.
remarqueCertification note when visibleExpected to be blank for many companies.
telephoneVisible phone from link or card textBest-effort; blank can be normal when hidden or unavailable.
siteExternal company website when exposedSome cards route through Kompass or hide site links.
url_detailKompass detail profile URLUse this for a second-stage detail scraper or manual review.
{
  "rowSelector": ".rowTop",
  "fileName": "kompass_annuaire_des_entreprises_scraper_liste.csv",
  "fileMode": "append",
  "columns": [
    "url_entree",
    "nom",
    "lieu",
    "presentation",
    "fourniture",
    "remarque",
    "telephone",
    "site",
    "url_detail"
  ]
}

If the CSV has names and detail URLs but missing phone or website values, do not assume failure. Contact fields are conditional. If a field is not visible to your browser, the automation should not invent it.


Alternatives

Kompass scraper tools: UScraper, Octoparse, Apify, and scripts

Kompass scraper tools fall into a few practical categories. Octoparse publishes no-code Kompass templates. Apify offers a Kompass scraper actor for hosted runs, datasets, and API usage. Open-source scripts fit engineers ready to maintain selectors, waits, proxy policy, and compliance review.

OptionBest fitTrade-off
UScraper local desktop appSupervised CSV export from a visible listing pageYou own pacing, QA, selector upkeep, and compliance review.
Octoparse Kompass templatesNo-code users who prefer hosted templatesExport behavior, quotas, and pricing depend on Octoparse.
Apify Kompass actorDevelopers who want cloud runs and API accessRows are processed in a hosted actor environment.
Python or Selenium scriptsEngineering teams with custom logic needsHigher maintenance burden.
Managed data serviceBuyers who want finished B2B datasetsLess workflow visibility.

For this tutorial, the decision point is custody and repeatability. If you want a visible desktop workflow, a controlled CSV path, and a listing-to-spreadsheet runbook, UScraper fits. If you need scheduled cloud runs or API orchestration, compare hosted tools honestly.


Troubleshooting

Common Kompass scraping issues

SymptomLikely causeFix
CSV file is emptyThe starting URL is not a compatible listing page or .rowTop did not loadOpen the page manually, inspect cards, and rerun a single page.
Duplicate rows appearAppend mode reused an old CSV or pagination repeatedClear the file, use a dated folder, and check next-page behavior.
Phone is blankPhone control is absent, hidden, or not revealed in timeIncrease the short sleep only after confirming the field is visible.
Website is a Kompass URLThe external site link is routed or hidden on the cardTreat url_detail as the follow-up source for deeper review.
Supplier categories look noisyListing text changed or extra lines entered the card bodyAdjust the fourniture JavaScript column after validating examples.

FAQ

Kompass directory scraper FAQ

Kompass listings can include publicly visible business information, but automated collection may still be limited by Kompass terms, database rights, privacy rules, robots guidance, and local law. Review the current terms, avoid bypassing access controls, collect only fields you are allowed to process, and get legal review before commercial reuse.


Next step

Download the Kompass listing scraper template

Download Kompass Directory Scraper for Company CSV Export, import it into the UScraper local desktop app, and keep this tutorial open for the first validation page. For adjacent workflows, browse the UScraper template library or the UScraper blog.

FAQ

Frequently asked questions

Here are some of our most common questions. Can't find what you're looking for?

View All FAQs

Stop writing scripts. Start scraping visually.

Download UScraper and build your first web scraper in under 10 minutes. No subscriptions, no code, no limits.

Available on Windows 10+ and macOS 12+ · Need help? [email protected]