Skip to content

Commit

Permalink
- housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyHampton committed Sep 15, 2023
1 parent ed7e76e commit a79c4c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeharvest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def scrape_property(
listing_type: str = "for_sale", #: for_sale, for_rent, sold
site_name: str = "redfin",
) -> list[Home]: #: eventually, return pandas dataframe
if site_name not in _scrapers:
if site_name.lower() not in _scrapers:
raise InvalidSite(f"Provided site, '{site_name}', does not exist.")

if listing_type.upper() not in ListingType.__members__:
Expand All @@ -25,6 +25,6 @@ def scrape_property(
listing_type=ListingType[listing_type.upper()],
)

site = _scrapers[site_name](scraper_input)
site = _scrapers[site_name.lower()](scraper_input)

return site.search()

0 comments on commit a79c4c6

Please sign in to comment.