Skip to content

Commit

Permalink
- remove pending listings from for_sale
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyHampton committed Oct 18, 2023
1 parent f726548 commit 11a7d85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions homeharvest/core/scrapers/realtor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>", "Cullen Watson <[email protected]>"]
homepage = "https://github.com/Bunsly/HomeHarvest"
Expand Down

0 comments on commit 11a7d85

Please sign in to comment.