fix: add street direction

pull/42/head
Cullen Watson 2023-11-08 16:52:06 -06:00
parent 7f86f69610
commit f692b438b2
1 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,7 @@ class RealtorScraper(Scraper):
listing_id listing_id
} }
address { address {
street_direction
street_number street_number
street_name street_name
street_suffix street_suffix
@ -215,6 +216,7 @@ class RealtorScraper(Scraper):
stories stories
} }
address { address {
street_direction
street_number street_number
street_name street_name
street_suffix street_suffix
@ -315,6 +317,7 @@ class RealtorScraper(Scraper):
} }
location { location {
address { address {
street_direction
street_number street_number
street_name street_name
street_suffix street_suffix
@ -606,6 +609,7 @@ class RealtorScraper(Scraper):
return Address( return Address(
street=" ".join([ street=" ".join([
self.handle_none_safely(address.get('street_number')), 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_name')),
self.handle_none_safely(address.get('street_suffix')), self.handle_none_safely(address.get('street_suffix')),
]).strip(), ]).strip(),