get_category_sample
Sample product detail pages from a category page using spread, random, or top-N strategies for quick PDP spot-checks.
Instructions
Sample a set of PDPs from a category page. Scrapes the category page (or uses cached data), picks product URLs based on a sampling strategy, then calls scrape_pdp on each in parallel. Useful for PDP spot-checks without manual URL selection. Strategies: "spread" (low/mid/high price tiers), "random" (random selection), "top" (first N products).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Category page URL to sample PDPs from. | |
| count | No | Number of PDPs to sample. Default: 2, max: 5. | |
| strategy | No | Sampling strategy. Default: "spread". |