sudheer-ranga/aliexpress-product-scraper ? reverse-engineered prompt
Reverse engineered prompt
Build me a Node.js package that can scrape an AliExpress product page or product id and return a clean JSON object with everything useful in it.
I want the result to include the product title, description HTML, main images, specs, variants, variant pricing, shipping details, store info, ratings, and customer reviews with photos when available. It should feel easy to use, like I can call one async function with a product id and get back the full data. Please make it work reliably on modern AliExpress pages and handle blocked or missing data gracefully, with sensible timeouts and options for how many reviews to fetch and whether to filter reviews by star rating.
Use the current docs online if you need to. Keep the code simple to install and run, and include a couple of examples and tests so I can see it working right away. If the site structure changes, try to make the scraper resilient rather than fragile.
Are you gonna build this?
make sure you review the code using coderabbit