Compare commits

...

2 Commits

Author SHA1 Message Date
zachary
a3c5e9060e - updated queries 2025-05-03 13:55:56 -07:00
zachary
d06595fe56 - updated queries 2025-05-03 13:28:12 -07:00
3 changed files with 26 additions and 5 deletions

View File

@@ -305,15 +305,20 @@ class RealtorScraper(Scraper):
)
elif search_type == "area": #: general search, came from a general location
query = """query Home_search(
$location: String!,
$city: String,
$county: [String],
$state_code: String,
$postal_code: String
$offset: Int,
) {
home_search(
query: {
%s
search_location: {location: $location}
city: $city
county: $county
postal_code: $postal_code
state_code: $state_code
status: %s
unique: true
%s
%s
%s
@@ -439,7 +444,11 @@ class RealtorScraper(Scraper):
else: #: general search, location
search_variables |= {
"location": self.location,
"city": location_info.get("city"),
"county": location_info.get("county"),
"state_code": location_info.get("state_code"),
"postal_code": location_info.get("postal_code"),
}
if self.foreclosure:

View File

@@ -36,6 +36,13 @@ _SEARCH_HOMES_DATA_BASE = """{
sqft
__typename
}
photos(https: true) {
title
href
tags {
label
}
}
list_price
__typename
}
@@ -90,12 +97,17 @@ _SEARCH_HOMES_DATA_BASE = """{
}
}
tax_record {
cl_id
public_record_id
last_update_date
apn
tax_parcel_id
}
primary_photo(https: true) {
href
}
photos(https: true) {
title
href
tags {
label

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "homeharvest"
version = "0.4.7"
version = "0.4.8"
description = "Real estate scraping library"
authors = ["Zachary Hampton <zachary@bunsly.com>", "Cullen Watson <cullen@bunsly.com>"]
homepage = "https://github.com/Bunsly/HomeHarvest"