Skip to content

Commit

Permalink
Merge pull request #42 from Bunsly/street_dirction
Browse files Browse the repository at this point in the history
fix: add street direction
  • Loading branch information
cullenwatson authored Nov 8, 2023
2 parents 30f48f5 + 9816def commit 5b6a994
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "homeharvest"
version = "0.3.8"
version = "0.3.9"
description = "Real estate scraping library supporting Zillow, Realtor.com & Redfin."
authors = ["Zachary Hampton <[email protected]>", "Cullen Watson <[email protected]>"]
homepage = "https://github.com/Bunsly/HomeHarvest"
Expand Down

0 comments on commit 5b6a994

Please sign in to comment.