diff --git a/homeharvest/core/scrapers/redfin/__init__.py b/homeharvest/core/scrapers/redfin/__init__.py index e182c3a..62942e0 100644 --- a/homeharvest/core/scrapers/redfin/__init__.py +++ b/homeharvest/core/scrapers/redfin/__init__.py @@ -90,7 +90,7 @@ class RedfinScraper(Scraper): stories=home["stories"] if "stories" in home else None, agent_name=get_value("listingAgent"), description=home["listingRemarks"] if "listingRemarks" in home else None, - year_built=get_value("yearBuilt") if not single_search else home["yearBuilt"], + year_built=get_value("yearBuilt") if not single_search else home.get("yearBuilt"), lot_area_value=lot_size, property_type=PropertyType.from_int_code(home.get("propertyType")), price_per_sqft=get_value("pricePerSqFt") if type(home.get("pricePerSqFt")) != int else home.get("pricePerSqFt"), diff --git a/pyproject.toml b/pyproject.toml index 01ad8f8..007e3ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "homeharvest" -version = "0.2.12" +version = "0.2.13" description = "Real estate scraping library supporting Zillow, Realtor.com & Redfin." authors = ["Zachary Hampton ", "Cullen Watson "] homepage = "https://github.com/ZacharyHampton/HomeHarvest"