I need a repeatable script that crawls the two MusicMagpie pages I’ve linked and returns a complete price matrix for every iPhone and Samsung model listed. The flow is straightforward but requires the script to behave exactly like a real shopper: open each handset link, loop through every available Storage-Condition combination, wait for the on-page price to refresh, then record that value. The JSON file you hand back will contain one entry per combination with four keys—Phone Model, Storage, Condition and Price—so it’s ready for direct import into my existing pricing system. All storage tiers are in scope. At this stage I only need the two specified brands, yet I’d like the code structured so adding more manufacturers later is simple. Please write the solution in a language and tooling stack suited to headless browsing (Python + Selenium or Playwright, or Node + Puppeteer are both fine). Make sure you include any helper scripts, a requirements file and short setup notes so I can run the scraper on a fresh machine without guesswork. Deliverables • Well-commented source code • One cleaned JSON dataset containing every model / storage / condition / price combination • Quick README covering setup, usage and how to extend to new brands The site relies on dynamic content, so waiting for elements and handling pagination (where present) is essential. If anything in the page layout changes during development, flag it and we’ll adjust together.