mirror of
https://gitlab.dit.htwk-leipzig.de/fsr-im/tools/flatscraper.git
synced 2026-01-17 22:12:26 +01:00
feat: update property handling in VLW scraper and main process, fix image URL formatting
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user