petercoker/e-commerce-retailer-scraper-framework ? reverse-engineered prompt

Reverse engineered prompt

Build me a TypeScript scraper framework for e commerce sites, starting with Amazon.es, that can search by keyword and return the top 5 organic products with id, title, price, and currency, plus a second method to fetch a full product page with images and other details.

I want it to be easy to extend later for other stores like eBay, AliExpress, Mercadona, or PcComponentes, so please keep each retailer in its own adapter and share the common browser and retry logic. It should use Playwright, handle cookie banners, include random delays and exponential backoff, and reuse one browser session instead of launching a new one every time.

Please also add simple JSON and CSV output pipelines, and a small CLI so I can run a demo search from the terminal. If you need to check current Playwright or TypeScript docs, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab