Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Python scraper for SeLoger.com - France's #1 real estate portal. Extracts property listings using ScrapingAnt API.

Notifications You must be signed in to change notification settings

kami4ka/SelogerScraper

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SeLoger.com Scraper

A Python scraper for extracting property listings from SeLoger.com (France's #1 real estate portal) using the ScrapingAnt API.

Features

  • Scrapes apartments, houses, and other property types
  • Supports buy and rent listings
  • Covers all major French cities (Paris, Lyon, Marseille, etc.)
  • Parallel scraping for improved performance
  • Extracts 35+ property attributes including price, area, rooms, location, amenities
  • Uses CSS selectors for reliable data extraction
  • Exports data to CSV format
  • Rate limiting and retry logic for reliability

Installation

  1. Clone the repository:
git clone https://github.com/kami4ka/SelogerScraper.git
cd SelogerScraper
  1. Create a virtual environment and install dependencies:
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -r requirements.txt

Usage

Command Line

# Scrape apartments for sale in Paris
python main.py --location paris --property apartment

# Scrape houses for rent in Lyon
python main.py --location lyon --contract rent --property house

# Scrape with page limit
python main.py --location marseille --max-pages 5

# Scrape with property limit
python main.py --location toulouse --limit 100

# Enable verbose logging
python main.py --location nice --max-pages 3 -v

Available Options

Option Description
--location, -l Location to search (default: paris)
--contract, -c Contract type: buy or rent (default: buy)
--property, -p Property type (default: all)
--output, -o Output CSV file path (default: properties.csv)
--limit Maximum number of properties to scrape
--max-pages Maximum number of listing pages to scrape
--max-workers, -w Maximum parallel requests (default: 10)
--api-key, -k ScrapingAnt API key (overrides environment variable)
--verbose, -v Enable verbose logging

Property Types

Type Description
all All properties (apartments + houses)
apartment Apartments
house Houses
land Land/Plots
parking Parking spaces
office Offices
commercial Commercial properties

Location Examples

  • paris - Paris
  • lyon - Lyon
  • marseille - Marseille
  • toulouse - Toulouse
  • nice - Nice
  • nantes - Nantes
  • montpellier - Montpellier
  • strasbourg - Strasbourg
  • bordeaux - Bordeaux
  • lille - Lille

Output Format

The scraper exports data to CSV with the following fields:

Field Description
url Property listing URL
listing_id Unique listing identifier
title Property title
property_type Type (Apartment, House, etc.)
contract_type Buy or Rent
price Listed price in EUR
price_per_sqm Price per square meter
city City name
district District/neighborhood name
postal_code Postal code
rooms Number of rooms
bedrooms Number of bedrooms
living_area Living area in m²
floor Floor level
total_floors Total floors in building
kitchen_type Kitchen type
storage Storage/cellar info
wc Number of WCs
balcony Balcony availability
terrace Terrace availability
garden Garden availability
parking Parking availability
elevator Elevator availability
exposure Sun exposure
ambiance Property ambiance
energy_rating Energy certificate class (A-G)
emissions_rating GES emissions class (A-G)
year_built Year of construction
heating_type Heating type
energy_source Energy source
price_without_fees Price excluding agency fees
agency_fees Agency fees amount
agency_fees_percent Agency fees percentage
notary_fees Estimated notary fees
energy_bill_min Min annual energy cost
energy_bill_max Max annual energy cost
copro_charges Annual co-ownership charges
copro_lots Number of co-ownership lots
copro_procedures Co-ownership procedures status
description Property description
agency_name Real estate agency name
reference Agency reference number
date_scraped Scraping timestamp

API Configuration

This scraper uses the ScrapingAnt API for web scraping. You can provide the API key via:

  1. Environment variable: export SCRAPINGANT_API_KEY=your_key
  2. Command line: --api-key YOUR_KEY

Configuration options in config.py:

  • SCRAPINGANT_API_KEY: Your API key
  • DEFAULT_MAX_WORKERS: Parallel request limit (default: 10)
  • DEFAULT_TIMEOUT: Request timeout in seconds (default: 120)
  • MAX_RETRIES: Number of retry attempts (default: 3)

License

MIT License

About

Python scraper for SeLoger.com - France's #1 real estate portal. Extracts property listings using ScrapingAnt API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.