-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
28 lines (24 loc) · 1.07 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# config.py
FIELDS_TO_FETCH = {
"title": "#expose-title",
"price": ".is24qa-kaltmiete",
"size": ".is24qa-flaeche-main",
"rooms": ".is24qa-zimmer",
"stories": ".is24qa-etage",
"address": ".address-block",
"additional_costs": ".is24qa-nebenkosten",
"heating_expenses_excluded": ".is24qa-heizkosten",
"total_rent": ".is24qa-warmmiete-main, .is24qa-geschaetzte-warmmiete-main",
"deposit": ".is24qa-kaution-o-genossenschaftsanteile"
}
# Search configurations
SEARCH_CONFIGS = [
"https://www.immobilienscout24.de/Suche/de/baden-wuerttemberg/stuttgart/wohnung-mieten?equipment=parking,balcony",
"https://www.immobilienscout24.de/Suche/de/baden-wuerttemberg/stuttgart/wohnung-mieten?equipment=balcony",
"https://www.immobilienscout24.de/Suche/de/baden-wuerttemberg/stuttgart/wohnung-mieten?equipment=parking",
"https://www.immobilienscout24.de/Suche/de/baden-wuerttemberg/stuttgart/wohnung-mieten"
]
# Base URL for individual listings
BASE_URL = "https://www.immobilienscout24.de"
# Limit for the number of listings to scrape
LIMIT_INT = 150