Scrape, normalize, and compare product prices across e-commerce sites.
"Compare prices for [product name] across Amazon, eBay, and Walmart"
"Scrape pricing from [URL]"
"Track price changes for [product]"
scripts/scrape_prices.py for each target--format flagUse web_fetch + cheerio-style parsing. No browser needed.
Use the browser tool with snapshot + act to navigate and extract.
{
"query": "product name or url",
"scraped_at": "ISO-8601",
"results": [
{
"source": "amazon",
"url": "https://...",
"title": "Product Title",
"price": 29.99,
"currency": "USD",
"unit_price": null,
"original_price": 39.99,
"in_stock": true,
"rating": 4.5,
"review_count": 1234
}
],
"summary": {
"lowest": { "source": "amazon", "price": 29.99 },
"highest": { "source": "walmart", "price": 34.99 },
"average": 32.49,
"median": 31.99
}
}
scripts/scrape_prices.py — main scraper: accepts product name or URL list, outputs structured JSONreferences/selectors.md for site-specific CSS selectors共 1 个版本