- updated queries
parent
e378feeefe
commit
d06595fe56
|
@ -432,10 +432,10 @@ class RealtorScraper(Scraper):
|
||||||
"radius": "{}mi".format(self.radius),
|
"radius": "{}mi".format(self.radius),
|
||||||
}
|
}
|
||||||
|
|
||||||
elif location_type == "postal_code":
|
#: elif location_type == "postal_code":
|
||||||
search_variables |= {
|
#: search_variables |= {
|
||||||
"postal_code": location_info.get("postal_code"),
|
#: "postal_code": location_info.get("postal_code"),
|
||||||
}
|
#: }
|
||||||
|
|
||||||
else: #: general search, location
|
else: #: general search, location
|
||||||
search_variables |= {
|
search_variables |= {
|
||||||
|
|
|
@ -36,6 +36,13 @@ _SEARCH_HOMES_DATA_BASE = """{
|
||||||
sqft
|
sqft
|
||||||
__typename
|
__typename
|
||||||
}
|
}
|
||||||
|
photos(https: true) {
|
||||||
|
title
|
||||||
|
href
|
||||||
|
tags {
|
||||||
|
label
|
||||||
|
}
|
||||||
|
}
|
||||||
list_price
|
list_price
|
||||||
__typename
|
__typename
|
||||||
}
|
}
|
||||||
|
@ -90,12 +97,17 @@ _SEARCH_HOMES_DATA_BASE = """{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tax_record {
|
tax_record {
|
||||||
|
cl_id
|
||||||
public_record_id
|
public_record_id
|
||||||
|
last_update_date
|
||||||
|
apn
|
||||||
|
tax_parcel_id
|
||||||
}
|
}
|
||||||
primary_photo(https: true) {
|
primary_photo(https: true) {
|
||||||
href
|
href
|
||||||
}
|
}
|
||||||
photos(https: true) {
|
photos(https: true) {
|
||||||
|
title
|
||||||
href
|
href
|
||||||
tags {
|
tags {
|
||||||
label
|
label
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "homeharvest"
|
name = "homeharvest"
|
||||||
version = "0.4.7"
|
version = "0.4.8"
|
||||||
description = "Real estate scraping library"
|
description = "Real estate scraping library"
|
||||||
authors = ["Zachary Hampton <zachary@bunsly.com>", "Cullen Watson <cullen@bunsly.com>"]
|
authors = ["Zachary Hampton <zachary@bunsly.com>", "Cullen Watson <cullen@bunsly.com>"]
|
||||||
homepage = "https://github.com/Bunsly/HomeHarvest"
|
homepage = "https://github.com/Bunsly/HomeHarvest"
|
||||||
|
|
Loading…
Reference in New Issue