From 11a7d854f03adeda5acc9bb69eb1ab47c974bb9f Mon Sep 17 00:00:00 2001 From: Zachary Hampton <69336300+ZacharyHampton@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:41:41 -0700 Subject: [PATCH] - remove pending listings from for_sale --- homeharvest/core/scrapers/realtor/__init__.py | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/homeharvest/core/scrapers/realtor/__init__.py b/homeharvest/core/scrapers/realtor/__init__.py index 0f175f8..f345a27 100644 --- a/homeharvest/core/scrapers/realtor/__init__.py +++ b/homeharvest/core/scrapers/realtor/__init__.py @@ -471,6 +471,9 @@ def general_search( is_pending = result["flags"].get("is_pending") or result["flags"].get("is_contingent") + if is_pending and self.listing_type != ListingType.PENDING: + continue + realty_property = Property( mls=mls, mls_id=result["source"].get("listing_id") diff --git a/pyproject.toml b/pyproject.toml index c03f0f6..6a2212c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "homeharvest" -version = "0.3.6" +version = "0.3.7" description = "Real estate scraping library supporting Zillow, Realtor.com & Redfin." authors = ["Zachary Hampton ", "Cullen Watson "] homepage = "https://github.com/Bunsly/HomeHarvest"