技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
price-comparison【数据与研究】Shopping price comparison using Bright Data's web scraping infrastructure. Finds where a product is sold, for how much, and whether it's in stock — across Amazon, Walmart, eBay, Best Buy, Google Shopping, and any retailer URL — then ranks the offers into a single buy-recommendation table. Use this skill when the user wants to compare prices, find the…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Find the best place to actually buy a product — lowest price, in stock, from a
reputable seller — using live retailer data, not stale training knowledge.
Combines the Bright Data CLI (bdata) for collection with a normalization +
ranking layer to deliver a single cited comparison table and a clear buy
recommendation.
Never quote prices from training knowledge. Prices and stock change hourly. Always pull live data first, then compare. If a source fails, say so — never fill a price gap with a guess.
curl -fsSL https://cli.brightdata.com/install.sh | bash
bdata login # or: bdata login --device (SSH / headless)
Verify before collecting:
if ! command -v bdata >/dev/null 2>&1; then
echo "bdata CLI not installed — see skills/bright-data-best-practices/references/cli-setup.md"
elif ! bdata zones >/dev/null 2>&1; then
echo "bdata not authenticated — run: bdata login"
fi
Halt and route to setup if either check fails.
discover_by_* scraper and bdata search --type shopping to
resolve it to concrete product URLs/offers, then pull each retailer's
structured data. Parallelize independent calls.bdata search "<product>" --type shopping --json to find the exact items,
then feed those URLs to product pipelines.bdata scrape amazon.com — Amazon
blocks scrapers; the pipeline bypasses that reliably.bdata pipelines search, then
bdata pipelines info <dataset_id> <method>, then bdata pipelines run.
Never guess a dataset_id or field names. Full workflow: the
brightdata-cli skill,
pipelines reference.--json when you need to parse or compare output.bdata calls, not 50.
Pull the offers the user asked about, not every seller on the page.Pick the retailers that fit the product and region. US electronics → Amazon + Best Buy + Walmart + Google Shopping; marketplace/used → eBay; non-US → confirm the local Amazon domain and add region-relevant retailers.
bdata pipelines search "<retailer> product" # pick the dataset_id for the right domain
bdata pipelines info <dataset_id> collect_by_url # check required fields
bdata pipelines run <dataset_id> collect_by_url "<product-url>" -o <retailer>.json
One record per URL, with price, title, availability, rating and seller. Pass
several URLs from the same retailer in one run. Use the right retailer
domain for the region (for Amazon: amazon.com, amazon.de, amazon.co.uk, …).
bdata pipelines info <dataset_id> # look for a discover_by_* method
bdata pipelines info <dataset_id> <method> # see its input fields
bdata pipelines run <dataset_id> <method> --<field> "<product name>" --limit-per-input 5
Resolve the right product URL from the results, then run collect_by_url on
it. Every returned record is billed, so keep --limit-per-input small.
bdata pipelines search "google shopping"
bdata pipelines run <dataset_id> collect_by_url "<google-shopping-product-url>" -o gshopping.json
Best for a fast multi-seller view once you have a Shopping product URL. To find that URL (and a quick price spread) from a name, use SERP shopping:
bdata search "iPhone 17 Pro 256GB" --type shopping --country us --json
bdata scrape "https://retailer.example/product-page"
Then extract price, currency, and stock from the markdown. Use this for local retailers without a dedicated pipeline (e.g. regional electronics chains).
Never hardcode a scraper. Pick the
dataset_idfrombdata pipelines searchand the input fields frombdata pipelines info. Two scrapers can share a name, so check the domain. Missing or unknown fields fail before anything is billed.
--country <code> to bdata search for localized SERP/shopping
results (e.g. --country il for Israel, de, uk).amazon.com with international shipping and via local chains —
cover both and label shipping/import implications.Read references/output-and-pricing.md for: