通过HTML解析搜索 immowelt.at 和 immowelt.de 上的房产列表(公寓、别墅),无需浏览器,可搜索奥地利或德国的任意地点。
Search and retrieve property listings from immowelt.at (Austria) and immowelt.de (Germany) via HTML parsing. No browser automation needed.
Requires python3 with the requests library (pre-installed in most environments).
bash
# Apartments for sale in Vienna, max €300k
python3 scripts/immowelt-search.py --location wien --type apartment --max-price 300000
# Houses in Wien, max €350k
python3 scripts/immowelt-search.py --location wien --type house --max-price 350000
# With room filter
python3 scripts/immowelt-search.py --location wien --type apartment --max-price 300000 --min-rooms 2
# German location
python3 scripts/immowelt-search.py --country de --location muenchen --type apartment --max-price 400000
# JSON output
python3 scripts/immowelt-search.py --location wien --type apartment --format json
# With full expose details (heating, energy, condition) — slower
python3 scripts/immowelt-search.py --location wien --type apartment --max-price 300000 --with-details
bash
python3 scripts/immowelt-search.py --expose 0a848843-86ba-4093-bd93-166258e909f7
python3 scripts/immowelt-search.py --expose 0a848843-86ba-4093-bd93-166258e909f7 --format json
Expose detail fields include:
CLI TypeImmowelt CategoryapartmentWohnungen kaufenhouseHäuser kaufenapartment-rentWohnungen mietenhouse-rentHäuser mieten
Locations use the immowelt URL slug — taken directly from the URL path at immowelt.at or immowelt.de.
LocationSlugWienwienNiederösterreichniederoesterreichOberösterreichoberoesterreichSalzburgsalzburgSteiermarksteiermarkKärntenkaerntenTiroltirolVorarlbergvorarlbergBurgenlandburgenlandMödling (NÖ)bezirk-moedlingBaden (NÖ)bezirk-badenKorneuburg (NÖ)bezirk-korneuburg
LocationSlugBayernbayernBerlinberlinHamburghamburgMünchenmuenchenPassaupassau
Any valid immowelt location slug works — these are just examples.
ParameterDescription--country``at (Austria, default) or de (Germany)--locationLocation slug (required for search)--typeProperty type: apartment, house, apartment-rent, house-rent``--max-priceMaximum price in EUR--min-roomsMinimum rooms--max-pagesMax result pages (default: 5, ~32 items/page)--with-detailsFetch expose for each listing (slower, includes heating/energy)--exposeGet details for a specific expose UUID--format``text or json
Immowelt uses URL query parameters for filtering:
pma — Max pricermi — Min roomscp — Page number0a848843-86ba-4093-bd93-166258e909f7--min-rooms filter is applied server-side but may not always be exact