From d06595fe5600ffe81abdb7a5c8bbb6f3272f3b5e Mon Sep 17 00:00:00 2001 From: zachary Date: Sat, 3 May 2025 13:28:12 -0700 Subject: [PATCH] - updated queries --- homeharvest/core/scrapers/realtor/__init__.py | 8 ++++---- homeharvest/core/scrapers/realtor/queries.py | 12 ++++++++++++ pyproject.toml | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/homeharvest/core/scrapers/realtor/__init__.py b/homeharvest/core/scrapers/realtor/__init__.py index 85342c3..fe386f3 100644 --- a/homeharvest/core/scrapers/realtor/__init__.py +++ b/homeharvest/core/scrapers/realtor/__init__.py @@ -432,10 +432,10 @@ class RealtorScraper(Scraper): "radius": "{}mi".format(self.radius), } - elif location_type == "postal_code": - search_variables |= { - "postal_code": location_info.get("postal_code"), - } + #: elif location_type == "postal_code": + #: search_variables |= { + #: "postal_code": location_info.get("postal_code"), + #: } else: #: general search, location search_variables |= { diff --git a/homeharvest/core/scrapers/realtor/queries.py b/homeharvest/core/scrapers/realtor/queries.py index fb7be0e..d3dad3c 100644 --- a/homeharvest/core/scrapers/realtor/queries.py +++ b/homeharvest/core/scrapers/realtor/queries.py @@ -36,6 +36,13 @@ _SEARCH_HOMES_DATA_BASE = """{ sqft __typename } + photos(https: true) { + title + href + tags { + label + } + } list_price __typename } @@ -90,12 +97,17 @@ _SEARCH_HOMES_DATA_BASE = """{ } } tax_record { + cl_id public_record_id + last_update_date + apn + tax_parcel_id } primary_photo(https: true) { href } photos(https: true) { + title href tags { label diff --git a/pyproject.toml b/pyproject.toml index 54e4869..f60c2c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "homeharvest" -version = "0.4.7" +version = "0.4.8" description = "Real estate scraping library" authors = ["Zachary Hampton ", "Cullen Watson "] homepage = "https://github.com/Bunsly/HomeHarvest"