- rename to property

This commit is contained in:
Zachary Hampton
2023-09-16 10:11:39 -07:00
parent 4764b6bd37
commit a772fe45aa
5 changed files with 10 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
from .core.scrapers.redfin import RedfinScraper
from .core.scrapers.realtor import RealtorScraper
from .core.scrapers.types import ListingType, Home
from .core.scrapers.types import ListingType, Property
from .core.scrapers import ScraperInput
from .exceptions import InvalidSite, InvalidListingType
@@ -15,7 +15,7 @@ def scrape_property(
location: str,
site_name: str,
listing_type: str = "for_sale", #: for_sale, for_rent, sold
) -> list[Home]: #: eventually, return pandas dataframe
) -> list[Property]: #: eventually, return pandas dataframe
if site_name.lower() not in _scrapers:
raise InvalidSite(f"Provided site, '{site_name}', does not exist.")