From 6b02394e954936cca60287e0aaf6dea87508313f Mon Sep 17 00:00:00 2001 From: Zachary Hampton <69336300+ZacharyHampton@users.noreply.github.com> Date: Mon, 18 Sep 2023 08:37:07 -0700 Subject: [PATCH] - scrape_property docstring --- homeharvest/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/homeharvest/__init__.py b/homeharvest/__init__.py index 2b53b13..8582148 100644 --- a/homeharvest/__init__.py +++ b/homeharvest/__init__.py @@ -91,6 +91,16 @@ def scrape_property( site_name: str, listing_type: str = "for_sale", #: for_sale, for_rent, sold ) -> pd.DataFrame: + """ + Scrape property from various sites from a given location and listing type. + + :returns: pd.DataFrame + :param location: US Location (e.g. 'San Francisco, CA', 'Cook County, IL', '85281', '2530 Al Lipscomb Way') + :param site_name: Site name (e.g. 'realtor.com', 'zillow', 'redfin') + :param listing_type: Listing type (e.g. 'for_sale', 'for_rent', 'sold') + :return: pd.DataFrame containing properties + """ + validate_input(site_name, listing_type) scraper_input = ScraperInput(