feat: update property handling in VLW scraper and main process, fix image URL formatting

This commit is contained in:
Elmar Kresse
2025-02-16 22:58:19 +01:00
parent 9bf5155e9f
commit 683403e8bf
3 changed files with 6 additions and 3 deletions

View File

@@ -34,6 +34,9 @@ def scrape_vlw():
for estate in estate_items:
# <div class="image-wrapper" style="background-image: url(' income/actual/new/42da0fdb1bcaed578d2256f1a0599bf6.jpg ');">
image_url = estate.find("div", class_="image-wrapper")["style"].split("'")[1]
# remove all whitespaces
image_url = image_url.replace(" ", "")
image_url = "https://vlw-eg.de/" + image_url
# title <h4 class="heading_h4">3-Raumwohnung sucht Nachmieter Großartiger Weitblick inklusive!!</h4>
title = estate.find("h4", class_="heading_h4").text
@@ -62,7 +65,7 @@ def scrape_vlw():
properties.append({
"id": property_id,
"title": "Wogetra - "+ title,
"title": "VLW - "+ title,
"subtitle": subtitle,
"rooms": rooms,
"size": size,