Dev Tools · 18h ago
Stop scraping HTML: product JSON is already in the page
Parsing HTML for product data is fragile; a redesign can break selectors. Instead, extract JSON-LD from script tags or XHR responses, which retailers embed for SEO. This approach is more reliable and avoids headless browsers.
Meridian48 take
The advice is sound for developers, but the article oversimplifies: not all retailers expose complete data in JSON-LD, and some require authentication or dynamic rendering.
Read the full reporting
Stop parsing HTML to get product data — the JSON is already in the page →
DEV Community
web-scrapingjson-ld