La Centrale Pros Scraper
Scrape La Centrale's dealer directory and dealer pages (pros.lacentrale.fr) into structured data. List every car dealer in a city, department, region or brand network, open a dealer for its SIREN and SIRET, founding year, verified badge, address with coordinates, opening hours, website and stock size, and pull every vehicle in its stock: make, model, version, year, mileage, fuel, gearbox, price, monthly price, La Centrale's deal rating (very good, good, fair, bad), warranty and listing dates. JSON or CSV.
pip install lacentrale-pros-scraper
export SCRAPEDO_TOKEN=your_token
lacentrale-pros --city lyon -f csv -o lyon_dealers.csv # directory cards
lacentrale-pros --city lyon --details -o lyon_dealers.json # + SIREN/SIRET, hours, website
lacentrale-pros --city lyon --stock -f csv -o lyon_cars.csv # every car of every dealer
lacentrale-pros C045088 --stock -o stock.json # one dealer
Why plain requests fail
import requests
r = requests.get("https://pros.lacentrale.fr/C045088")
print(r.status_code) # 403
print(r.text[:200]) # ... Please enable JS and disable any ad blocker ... dd={'rt':'c' ...
lacentrale.fr is protected by DataDome, which answers a script with 403 and a JavaScript challenge. This package sends each request through Scrape.do, which returns the real page. A plain request is enough, no extra parameters: 1 credit per page.
Where the data is
- Directory (
www.lacentrale.fr/annuaire/garages-villes/<city>,garages-departements/<dept>,garages-regions/<region>,marques/<brand>,?page=N&perPage=20): server-rendered cards with the dealer name, postcode and city, number of ads, a "Marques" badge for franchised dealers, and the dealer reference (C+ 6 digits) indata-tracking-meta. Some dealers link to their own website instead of their La Centrale page, but the reference is still there. - Dealer page (
pros.lacentrale.fr/C045088):- an
AutoDealerJSON-LD block with name, address and coordinates. ItsopeningHoursSpecificationis a JSON string inside the JSON: decode it a second time. - an identity card ("Vendeur vérifié", "Date de création", "Stock"; big groups show "Stock national" instead).
- a footer with SIREN / SIRET and the dealer's website.
window.__PRELOADED_STATE_LISTING__, whosesearch.hitsis the first page of stock (9 vehicles) andsearch.totalthe stock size.
- an
- More stock:
pros.lacentrale.fr/C045088/index?options=&page=2&vertical=car, same state object.
In a live test, Lyon had 17 dealers in the directory and 228 cars in stock, scraped for 37 credits. 42 of those cars carried La Centrale's "very good deal" badge and 52 "good deal"; the median price was €28,940.
Python
from lacentrale_pros import LaCentralePros
lc = LaCentralePros(token="YOUR_SCRAPEDO_TOKEN") # or set SCRAPEDO_TOKEN
for card in lc.directory("city", "Lyon"):
print(card.ref, card.name, card.postcode, card.ads)
dealer, cars = lc.dealer_with_stock("C045088")
print(dealer.name, dealer.siret, dealer.founded, dealer.opening_hours)
for car in cars:
print(car.make, car.model, car.year, car.mileage, car.price, car.deal)
print(lc.credits_used)
Fields
Directory card: ref, name, postcode, city, ads, franchise, url, own_site.
Dealer: ref, url, name, dealer_type (CONCESSIONNAIRE, CENTRE_MULTIMARQUES, ...), verified, founded, stock, stock_national, street, postcode, city, country, latitude, longitude, opening_hours, siren, siret, website, phone.
Vehicle: reference, url, make, model, version, year, mileage, energy, gearbox, category, color, doors, price, monthly_from, deal (VERY_GOOD_DEAL, GOOD_DEAL, EQUITABLE_DEAL, BAD_DEAL, NOT_COMPUTED), warranty_months, first_online, last_update, department, pictures, photo, is_new, dealer_ref, dealer_name.
Use it responsibly
This is business data published by professional sellers. Some dealers are sole traders, so treat names and phone numbers as personal data under the GDPR: use them for legitimate purposes, honour objection requests, and respect La Centrale's terms. Don't republish vehicle photos. This is not legal advice.
Tests
PYTHONPATH=src python -m unittest discover -s tests
The fixtures are fictional ("GARAGE EXEMPLE LYON", example.com).
License
MIT
Metadata
Release files for lacentrale-pros-scraper 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lacentrale_pros_scraper-0.1.0.tar.gz | 19.4 kB | Without provenance | Details for lacentrale_pros_scraper-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lacentrale_pros_scraper-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lacentrale_pros_scraper-0.1.0-py3-none-any.whl |
Total release size: 33.4 kB
Release files / lacentrale_pros_scraper-0.1.0.tar.gz
| Download URL | lacentrale_pros_scraper-0.1.0.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ea3fb6ce77312db6228fe8c0838bf4d4bb7b8e958e22c951da37b6ccf047ef1
|
|
BLAKE2b-256 checksum How to use checksums |
d057b1bbb742ceeed97160efe1318ccdf51d44bbc165c33171273a406a818518
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / lacentrale_pros_scraper-0.1.0-py3-none-any.whl
| Download URL | lacentrale_pros_scraper-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06703a4dd9aebcffac63dd3b16da7602ccb7e825de9228651784c94c48b70ac4
|
|
BLAKE2b-256 checksum How to use checksums |
59b1ceb098f3da1ec09eb3e267720569262b1fecbaf32137dae5da0deb6031d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for lacentrale-pros-scraper 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.