← back to Commercialrealestate
firm-site scraper: add missing sleep() helper (pageText crashed the improved re-sweep)
258bd6846bfbe96aea2fd1070466668e90bb7e5d · 2026-08-19 11:03:57 -0700 · Steve Abrams
Files touched
M scripts/backfill-openclaw-llm.js
Diff
commit 258bd6846bfbe96aea2fd1070466668e90bb7e5d
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed Aug 19 11:03:57 2026 -0700
firm-site scraper: add missing sleep() helper (pageText crashed the improved re-sweep)
---
scripts/backfill-openclaw-llm.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/backfill-openclaw-llm.js b/scripts/backfill-openclaw-llm.js
index 5f5d43f..9bff7b7 100644
--- a/scripts/backfill-openclaw-llm.js
+++ b/scripts/backfill-openclaw-llm.js
@@ -17,6 +17,7 @@ const APPLY = process.argv.includes('--apply');
const BIG = /cbre|kw\.com|yourkwoffice|kellerwilliams|marcusmillichap|kidder|coldwell|compass|remax|century21|colliers|jll|cushman|berkshire/i;
const domainOf = u => { try { return new URL(/^https?:/i.test(u) ? u : 'https://' + u).hostname.replace(/^www\./, ''); } catch { return u; } };
+const sleep = ms => new Promise(r => setTimeout(r, ms));
function oc(args, timeout = 45000) { try { return execFileSync(OC, args, { encoding: 'utf8', timeout, stdio: ['ignore', 'pipe', 'ignore'] }); } catch (e) { return null; } }
function ocEval(fn) { const out = oc(['browser', 'evaluate', '--fn', fn]); if (!out) return null; try { return JSON.parse(out); } catch { return out; } }
← 88f093b corner-nav: add 'Direct Listings' to Properties menu (the de
·
back to Commercialrealestate
·
CRCP: Frank onload 4-unit multifamily default filter + non-w cf0bd41 →