From 70fa0713183b92b6ca39374febb614c3b11e6215 Mon Sep 17 00:00:00 2001 From: Cullen Watson Date: Mon, 8 Jan 2024 12:46:31 -0600 Subject: [PATCH] fix: rent url --- homeharvest/core/scrapers/realtor/__init__.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeharvest/core/scrapers/realtor/__init__.py b/homeharvest/core/scrapers/realtor/__init__.py index 306d675..090a12f 100644 --- a/homeharvest/core/scrapers/realtor/__init__.py +++ b/homeharvest/core/scrapers/realtor/__init__.py @@ -503,7 +503,7 @@ class RealtorScraper(Scraper): mls_id=result["source"].get("listing_id") if "source" in result and isinstance(result["source"], dict) else None, - property_url=f"{self.PROPERTY_URL}{result['property_id']}", + property_url=f"{self.PROPERTY_URL}{result['property_id']}" if self.listing_type != ListingType.FOR_RENT else f"{self.PROPERTY_URL}M{result['property_id']}?listing_status=rental", status="PENDING" if is_pending else result["status"].upper(), list_price=result["list_price"], list_date=result["list_date"].split("T")[0] diff --git a/pyproject.toml b/pyproject.toml index 7b9d207..c999a8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "homeharvest" -version = "0.3.11" +version = "0.3.12" description = "Real estate scraping library supporting Zillow, Realtor.com & Redfin." authors = ["Zachary Hampton ", "Cullen Watson "] homepage = "https://github.com/Bunsly/HomeHarvest"