fix postal search to search just by zip
parent
ad13b55ea6
commit
e17b976923
|
@ -573,6 +573,11 @@ class RealtorScraper(Scraper):
|
|||
"radius": "{}mi".format(self.radius),
|
||||
}
|
||||
|
||||
elif location_type == "postal_code":
|
||||
search_variables |= {
|
||||
"postal_code": location_info.get("postal_code"),
|
||||
}
|
||||
|
||||
else: #: general search, location
|
||||
search_variables |= {
|
||||
"city": location_info.get("city"),
|
||||
|
|
|
@ -5,8 +5,6 @@ from .exceptions import InvalidListingType, InvalidDate
|
|||
|
||||
ordered_properties = [
|
||||
"property_url",
|
||||
"primary_photo",
|
||||
"alt_photos",
|
||||
"mls",
|
||||
"mls_id",
|
||||
"status",
|
||||
|
@ -33,6 +31,8 @@ ordered_properties = [
|
|||
"stories",
|
||||
"hoa_fee",
|
||||
"parking_garage",
|
||||
"primary_photo",
|
||||
"alt_photos",
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "homeharvest"
|
||||
version = "0.3.10"
|
||||
version = "0.3.11"
|
||||
description = "Real estate scraping library supporting Zillow, Realtor.com & Redfin."
|
||||
authors = ["Zachary Hampton <zachary@zacharysproducts.com>", "Cullen Watson <cullen@cullen.ai>"]
|
||||
homepage = "https://github.com/Bunsly/HomeHarvest"
|
||||
|
|
Loading…
Reference in New Issue