Skip to content

Commit

Permalink
fix: add street direction
Browse files Browse the repository at this point in the history
  • Loading branch information
cullenwatson committed Nov 8, 2023
1 parent 7f86f69 commit f692b43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions homeharvest/core/scrapers/realtor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def handle_listing(self, listing_id: str) -> list[Property]:
listing_id
}
address {
street_direction
street_number
street_name
street_suffix
Expand Down Expand Up @@ -215,6 +216,7 @@ def handle_address(self, property_id: str) -> list[Property]:
stories
}
address {
street_direction
street_number
street_name
street_suffix
Expand Down Expand Up @@ -315,6 +317,7 @@ def general_search(
}
location {
address {
street_direction
street_number
street_name
street_suffix
Expand Down Expand Up @@ -606,6 +609,7 @@ def _parse_address(self, result: dict, search_type):
return Address(
street=" ".join([
self.handle_none_safely(address.get('street_number')),
self.handle_none_safely(address.get('street_direction')),
self.handle_none_safely(address.get('street_name')),
self.handle_none_safely(address.get('street_suffix')),
]).strip(),
Expand Down

0 comments on commit f692b43

Please sign in to comment.