diff --git a/homeharvest/core/scrapers/realtor/__init__.py b/homeharvest/core/scrapers/realtor/__init__.py index 8fc6770..306d675 100644 --- a/homeharvest/core/scrapers/realtor/__init__.py +++ b/homeharvest/core/scrapers/realtor/__init__.py @@ -573,6 +573,11 @@ class RealtorScraper(Scraper): "radius": "{}mi".format(self.radius), } + elif location_type == "postal_code": + search_variables |= { + "postal_code": location_info.get("postal_code"), + } + else: #: general search, location search_variables |= { "city": location_info.get("city"), diff --git a/homeharvest/utils.py b/homeharvest/utils.py index fe5b885..0eaabda 100644 --- a/homeharvest/utils.py +++ b/homeharvest/utils.py @@ -5,8 +5,6 @@ from .exceptions import InvalidListingType, InvalidDate ordered_properties = [ "property_url", - "primary_photo", - "alt_photos", "mls", "mls_id", "status", @@ -33,6 +31,8 @@ ordered_properties = [ "stories", "hoa_fee", "parking_garage", + "primary_photo", + "alt_photos", ] diff --git a/pyproject.toml b/pyproject.toml index fa9e788..7b9d207 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "homeharvest" -version = "0.3.10" +version = "0.3.11" description = "Real estate scraping library supporting Zillow, Realtor.com & Redfin." authors = ["Zachary Hampton ", "Cullen Watson "] homepage = "https://github.com/Bunsly/HomeHarvest"