- rename days variable

This commit is contained in:
Zachary Hampton
2023-10-04 21:35:14 -07:00
parent ba7ad069c9
commit a9225b532f
5 changed files with 9 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ def scrape_property(
listing_type: str = "for_sale",
radius: float = None,
mls_only: bool = False,
property_younger_than: int = None,
past_days: int = None,
pending_or_contingent: bool = False,
proxy: str = None,
) -> pd.DataFrame:
@@ -22,7 +22,7 @@ def scrape_property(
:param listing_type: Listing Type (for_sale, for_rent, sold)
:param radius: Get properties within _ (e.g. 1.0) miles. Only applicable for individual addresses.
:param mls_only: If set, fetches only listings with MLS IDs.
:param property_younger_than: Get properties sold/listed in last _ days.
:param past_days: Get properties sold or listed (dependent on your listing_type) in the last _ days.
:param pending_or_contingent: If set, fetches only pending or contingent listings. Only applicable for for_sale listings from general area searches.
:param proxy: Proxy to use for scraping
"""
@@ -34,7 +34,7 @@ def scrape_property(
proxy=proxy,
radius=radius,
mls_only=mls_only,
last_x_days=property_younger_than,
last_x_days=past_days,
pending_or_contingent=pending_or_contingent,
)