From 6ebcc1cc7a180be78aea8da6535b9ee6e68905a6 Mon Sep 17 00:00:00 2001 From: Robert Dyer Date: Sun, 1 Feb 2026 12:36:01 -0600 Subject: [PATCH] update the field being pulled for zestimates --- zestimate.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/zestimate.js b/zestimate.js index 4201598..6b5861f 100644 --- a/zestimate.js +++ b/zestimate.js @@ -13,11 +13,19 @@ async function getZestimate(URL) { const html = await driver.wait(until.elementLocated(By.css('body')), 5000).getAttribute('innerHTML'); try { - let match = html.match(/"zestimate":"(\d+)"/); + let match = html.match(/"price":(\d+)/); if (match) { return parseInt(match[1]) * 100; } - match = html.match(/\\"zestimate\\":\\"(\d+)\\"/); + match = html.match(/\\"price\\":(\d+)/); + if (match) { + return parseInt(match[1]) * 100; + } + match = html.match(/"zestimate":(\d+)/); + if (match) { + return parseInt(match[1]) * 100; + } + match = html.match(/\\"zestimate\\":(\d+)/); if (match) { return parseInt(match[1]) * 100; }