Skip to content

Commit

Permalink
fix: redfin
Browse files Browse the repository at this point in the history
  • Loading branch information
cullenwatson committed Apr 4, 2024
1 parent d05bc5d commit be20258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeharvest/core/scrapers/redfin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, scraper_input):
def _handle_location(self):
url = "https://www.redfin.com/stingray/do/location-autocomplete?v=2&al=1&location={}".format(self.location)

response = self.session.get(url, headers={"user-agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36'})
response = self.session.get(url)
response_json = json.loads(response.text.replace("{}&&", ""))

def get_region_type(match_type: str):
Expand Down

0 comments on commit be20258

Please sign in to comment.