Menu

When Retailers Redesign Their Pages: Keeping a Price Tracker Alive Through Layout Changes
πŸ“°

When Retailers Redesign Their Pages: Keeping a Price Tracker Alive Through Layout Changes

DEV Community: apiΒ·hi giΒ·4 days ago
#3WApQFIv
#devtoapi#devto#dev#price#layout
Long article (833 words) β€” no AI summary yet.
Reading 0:00
15s threshold

When Retailers Redesign Their Pages: Keeping a Price Tracker Alive Through Layout Changes

A price tracker that breaks every time a store changes its HTML is not a tracker β€” it is a pager. Here is how to build one that survives redesigns.

Every deal site learns the same lesson eventually: the retailer page you scrape today will not look the same next quarter. Amazon, Walmart, and Best Buy all redesign product pages regularly β€” a price moves from one <span> to another, a new layout rolls out to half of all visitors, and a crawler that worked yesterday starts returning nothing. At Savlume we track prices across five stores, so a single silent break can poison a whole guide. This is how we think about surviving layout changes.

1. Extract by meaning, not by markup

The most common mistake is writing a selector that says "the price is the third <span> inside the div with class a-price ." That selector encodes the page's current design, not the price's meaning.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.