Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

zyte-ecommerce-products-compare-skillzyte 电商产品比较技巧

Agent Skill

zyte-ecommerce-products-compare-skill 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,427

周安装

140

GitHub Stars

公开资料未说明

下载量

1,098
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:zyte-ecommerce-products-compare-skill(zyte 电商产品比较技巧)
来源仓库:https://github.com/apscrapes/zyte-ecommerce-products-compare-skill
安装命令:
openclaw skills install zyte-ecommerce-products-compare-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install zyte-ecommerce-products-compare-skill

简介

zyte-ecommerce-products-compare-skill 用于查找、检索和筛选相关信息。

  • 适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。
  • 通过 clawhub 安装,结合来源仓库和 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 当前功能聚焦于使用 Zyte API 从电子商务 URL 中提取结构化产品数据并生成比较表。

SKILL.md

name
zyte-ecommerce-products-compare-skill
description
>

Zyte E-Commerce Products Compare Skill

Compare products from any e-commerce site by extracting structured data via the Zyte API, building a normalized comparison table, and recommending the best option.

What it does

  • Searches products across multiple e-commerce sources
  • Extracts price, features, and availability
  • Compares products side-by-side
  • Recommends the best option

Input

A natural language product query.

Skill structure

zyte-ecommerce-products-compare-skill/
├── SKILL.md                         ← Workflow and instructions (you are here)
├── scripts/
│   ├── fetch_products.py            ← Parallel fetcher (2–20+ URLs, rate-limit aware)
│   └── parse_product.py             ← Response parser (handles edge cases in Zyte output)
└── references/
    └── zyte-api-notes.md            ← API reference notes and known gotchas

When to read what:

  • scripts/fetch_products.py — always. This is the primary data fetching tool.
  • scripts/parse_product.py — always. Run it on each fetched response file.
  • references/zyte-api-notes.md — when you hit unexpected errors or need to

understand a parsing edge case.

Prerequisites

  • python3 (3.8+, stdlib only — no pip installs required)
  • ZYTE_API_KEY set in the environment

Input

Gather from the user:

FieldRequiredDescription
urlsYesList of product page URLs (at least 1, ideally 2+)
intentNoWhat the user cares about (e.g. "best value", "most durable")
api_keyYesZyte API key (prefer $ZYTE_API_KEY from env)

Workflow

Step 1 — Validate inputs

  1. Confirm at least one URL is provided. If only one URL is given, extract and

present its data but note that comparison requires 2+.

  1. Each URL must start with http:// or https://.
  2. Verify ZYTE_API_KEY is set:
   echo "$ZYTE_API_KEY" | head -c 4; echo "..."

If empty, ask the user to export it.

  1. If URLs span very different product categories (e.g. footwear and electronics),

warn the user and ask for confirmation before proceeding.

Step 2 — Fetch product data (parallel)

Use the bundled fetch script to call the Zyte API for all URLs in parallel:

python3 scripts/fetch_products.py "$ZYTE_API_KEY" \
  "https://example.com/products/item-a" \
  "https://example.com/products/item-b" \
  "https://example.com/products/item-c"

The script handles everything:

  • Fetches all URLs concurrently (up to 5 workers by default).
  • Writes each response to /tmp/product_1_raw.json, /tmp/product_2_raw.json, etc.
  • Retries HTTP 429 (rate limit) with exponential backoff, up to 3 times per URL.
  • Reports per-URL errors (401, 422, 520, network failures) without aborting others.
  • Decompresses gzip responses automatically.
  • Prints progress to stderr and a JSON summary to stdout.

Performance: Parallel fetching cuts wall-clock time significantly. For 3 URLs, expect ~35s instead of ~90s sequential (roughly 60% faster). For 10+ URLs the savings are even greater since most calls run concurrently.

Read the summary output to check which URLs succeeded:

{
  "total": 3,
  "success": 3,
  "failed": 0,
  "total_elapsed": 35.0,
  "results": [
    {"index": 1, "url": "...", "status": "ok", "file_path": "/tmp/product_1_raw.json", "elapsed": 18.2},
    {"index": 2, "url": "...", "status": "ok", "file_path": "/tmp/product_2_raw.json", "elapsed": 34.9},
    {"index": 3, "url": "...", "status": "ok", "file_path": "/tmp/product_3_raw.json", "elapsed": 21.4}
  ]
}

Exit codes: 0 = all succeeded, 1 = partial success (some failed), 2 = all failed.

Step 3 — Parse responses

For each successful result from Step 2, run the parse script:

python3 scripts/parse_product.py /tmp/product_1_raw.json
python3 scripts/parse_product.py /tmp/product_2_raw.json
python3 scripts/parse_product.py /tmp/product_3_raw.json

Skip any index where the fetch status was not "ok".

The script outputs normalized JSON to stdout with: name, price, currency, currencyRaw, brand, sku, availability, rating, reviewCount, bestRating, description, features, additionalProperties, breadcrumbs, mainImage, url, regularPrice.

Exit codes: 0 = success, 1 = no product data in response, 2 = file/JSON error.

Step 4 — Normalize data

Make the extracted data comparable:

  1. Prices — parse string values (e.g. "2999.0") to floats. Note each

product's currency. If currencies differ, flag it — don't auto-convert.

  1. Ratings — normalize to 0–5 scale if bestRating differs across products.

Formula: normalized = (ratingValue / bestRating) * 5. If a product has no rating, show and don't penalize it in ranking.

  1. Availability — map Zyte values to readable labels: InStock → "In Stock",

OutOfStock → "Out of Stock", PreOrder → "Pre-Order".

  1. Specs — merge features and additionalProperties into one key-value map.

Filter out junk entries (seller addresses, numeric-only keys, metadata like "net quantity" or "item count"). See references/zyte-api-notes.md for known junk patterns.

  1. Common fields — identify fields present across all products for the table

columns. Product-specific fields go in a "Unique Features" section.

Step 5 — Build comparison table

Generate a markdown table adapted to the product category:

| Attribute      | Product A          | Product B          |
|----------------|--------------------|--------------------|
| Name           | ...                | ...                |
| Price          | $29.99             | $34.99             |
| Regular Price  | $39.99             | —                  |
| Brand          | Brand X            | Brand Y            |
| Rating         | 4.5/5 (120 reviews)| —                  |
| Availability   | In Stock           | In Stock           |
| Key Features   | feature1, feature2 | feature3, feature4 |

Rules:

  • Use for missing values, never leave cells blank.
  • Show discounts: $29.99 (was $39.99).
  • Cap "Key Features" at 5 items per product.
  • For 4+ products, consider vertical layout if the table gets too wide.

Step 6 — Key differences

List 3–5 bullet points focused on what would influence a purchase decision:

- Product A is 70% cheaper
- Only Product B has customer ratings
- Product C is the only one with detailed material specs
- Product A has the steepest discount (40% off)

Step 7 — Recommendation

With user intent — map intent keywords to relevant attributes:

KeywordsPrioritize
budget / cheap / valuelowest price, price-to-rating ratio
best / premium / tophighest rating, most reviews, brand reputation
comfort / walking / runningcushioning, weight, sole tech, material
sport / court / outdoorsupport, traction, durability, construction
durability / lastingmaterial quality, warranty, build

Produce up to 3 recommendations:

🏆 **Best Overall:** [Name] — [1-sentence reason]
💰 **Best Value:** [Name] — [1-sentence reason]
⭐ **Best Premium:** [Name] — [1-sentence reason]

Only include categories that make sense for the product set.

Be honest about product-intent mismatch. If none of the products actually match the user's stated need (e.g. user wants running shoes but all products are casual sneakers), say so clearly and suggest what to look for instead.

Without intent — rank by value score:

value_score = (rating / 5) * 0.6 + (1 - normalized_price) * 0.4

Where normalized_price = (price - min) / (max - min) across the set. If a product has no rating, use the average of the other products as a stand-in.

Step 8 — Final output

Structure the response as:

## Product Comparison
[Table from Step 5]

### Key Differences
[Bullets from Step 6]

### Recommendation
[From Step 7]

### Data Notes
- Source: Zyte API automatic product extraction
- [List any failed URLs with reasons]
- [Note if currencies differ across products]
- [Note if any data was incomplete]
- [Total fetch time and number of parallel workers used]

Error handling

Most errors are handled automatically by scripts/fetch_products.py. Check the JSON summary output to see per-URL status.

ErrorHandled by
Missing ZYTE_API_KEYYou (Step 1) — stop and ask user to export it.
Invalid URL formatfetch_products.py — skipped, reported in summary.
HTTP 401fetch_products.py — reported as auth_error.
HTTP 422fetch_products.py — reported as payload_error.
HTTP 429 (rate limit)fetch_products.py — auto-retries 3× with backoff.
HTTP 520/521fetch_products.py — reported as http_error.
No .product in responsefetch_products.py — reported as no_product_data.
JSON control charactersparse_product.py — handled via strict=False.
Missing individual fieldsYou (Step 5) — show in table, never crash.
All URLs failedReport errors from summary, suggest manual URL check.
Mixed currenciesYou (Step 4) — show both, don't convert, flag it.

DNS note

If network calls fail with DNS resolution errors in sandboxed environments, force a public DNS resolver before running:

echo "nameserver 8.8.8.8" > /etc/resolv.conf

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

76.32%
按下载量换算838

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills