mirror of
https://gitlab.dit.htwk-leipzig.de/fsr-im/tools/flatscraper.git
synced 2026-01-17 01:42:26 +01:00
feat: add BGL scraper and integrate into main scraping process; update image scraping logic
This commit is contained in:
@@ -15,7 +15,7 @@ def send_to_discord(property_data):
|
||||
f"{property_data['subtitle']}\n"
|
||||
f"**Zimmer:** {property_data['rooms']}\n"
|
||||
f"**Wohnfläche:** {property_data['size']}\n"
|
||||
f"**Gesamtmiete:** {property_data['rent']}\n"
|
||||
f"**Miete:** {property_data['rent']}\n"
|
||||
f"**Warmmiete:** {property_data['warm_rent']}\n"
|
||||
f"**Verfügbar ab:** {property_data['availability']}\n"
|
||||
f"**Link:** {property_data['link']}\n"
|
||||
@@ -31,7 +31,7 @@ def send_to_discord(property_data):
|
||||
try:
|
||||
|
||||
# Download the image
|
||||
image_response = scrape_image.scrape_image(property_data["image_url"])
|
||||
image_response = scrape_image.scrape_image(property_data["image_url"], property_data["owner"])
|
||||
|
||||
# Check if the image was downloaded successfully
|
||||
if image_response == b"":
|
||||
|
||||
Reference in New Issue
Block a user