diff --git a/crawler/ui_exporter.py b/crawler/ui_exporter.py index 24496ff..94593ff 100644 --- a/crawler/ui_exporter.py +++ b/crawler/ui_exporter.py @@ -21,9 +21,13 @@ async def export_immoweb(ctx, output_file: str): 'city': 'London', # change me 'country': 'United Kingdom', 'qm': await listing.sqm_ocr(), - 'qmprice': await listing.price_per_sqm(), + 'qmprice': round(await listing.price_per_sqm(), 2), 'rooms': listing.bedrooms, 'total_price': listing.price, + 'url': listing.url, + # Additional info; the above is GeoJSON format + # Below is all other crap we want in the UI + 'info': await listing.dict_nicely(), }, 'geometry': { 'coordinates': [