Prefer structured Zillow photo data before click path
This commit is contained in:
@@ -181,8 +181,8 @@ node zillow-photos.js "https://www.zillow.com/homedetails/4141-Whiteley-Dr-Corpu
|
||||
|
||||
What it does:
|
||||
- opens the listing page with CloakBrowser
|
||||
- tries the `See all photos` / `See all X photos` entry point
|
||||
- if Zillow keeps the click path flaky, falls back to the listing's embedded `__NEXT_DATA__` payload
|
||||
- first checks whether the rendered listing shell already exposes a complete photo set in Zillow's embedded `__NEXT_DATA__` payload
|
||||
- only tries the `See all photos` / `See all X photos` entry point when the initial structured data is incomplete
|
||||
- returns direct `photos.zillowstatic.com` image URLs as JSON
|
||||
- fails fast with a timeout if the browser-backed extraction stalls
|
||||
|
||||
|
||||
Reference in New Issue
Block a user