This commit is contained in:
Cullen Watson
2023-09-19 15:01:39 -05:00
parent 05fca9b7e6
commit 49d27943c4
5 changed files with 91 additions and 6 deletions

View File

@@ -188,7 +188,9 @@ class ZillowScraper(Scraper):
else None,
"img_src": result.get("imgSrc"),
"price_per_sqft": int(home_info["price"] // home_info["livingArea"])
if "livingArea" in home_info and "price" in home_info
if "livingArea" in home_info
and home_info["livingArea"] != 0
and "price" in home_info
else None,
}
property_obj = Property(**property_data)