Amazon Product Fetcher
v1.0.0Fetch complete Amazon product data including title, current price, currency, star rating, review count, availability, main image, and product URL. Works from...
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description match the included code: the script fetches Amazon product pages and extracts title, price, rating, reviews, availability, image, and URL. No unrelated services, credentials, or binaries are requested.
Instruction Scope
SKILL.md and the CLI instruct only to fetch and parse public Amazon pages; there are no instructions to read unrelated files, access other credentials, or transmit data to third-party endpoints beyond Amazon. It notes CAPTCHA and points to a separate official SP-API skill for bulk/seller access.
Install Mechanism
No install spec or third-party downloads; the skill is instruction-only with one included Python script that uses only the standard library. Nothing is written to disk by an installer step.
Credentials
The code optionally reads AMAZON_MARKETPLACE from the environment to pick an Amazon domain, but the skill metadata declares no required env vars. This is not a secret/credential and appears harmless, but it is a minor mismatch between declared requirements and actual behavior.
Persistence & Privilege
The skill is not always-enabled, does not modify other skills or system settings, and does not request elevated or persistent privileges.
Assessment
This skill is internally coherent and implements what it claims: it fetches public Amazon product pages and parses them with regex using only the Python standard library. Things to consider before installing: (1) scraping Amazon at scale can trigger CAPTCHAs, IP blocking, or violate Amazon's terms — for bulk use prefer their official SP-API; (2) the script will perform network requests to arbitrary Amazon URLs you or the agent provide, so avoid feeding it private or sensitive links; (3) the code optionally respects an AMAZON_MARKETPLACE env var (not declared in metadata) — harmless but note the metadata mismatch; (4) if you plan autonomous agent use, limit invocation frequency and inputs to avoid unintentional mass scraping. If you want, you can review the included scripts/fetch.py (readable stdlib code) to confirm behavior before enabling the skill.Like a lobster shell, security has layers — review code before you run it.
Runtime requirements
🛒 Clawdis
amazonlatestpriceshoppingstdlib
Amazon Product Fetcher 🛒
从 Amazon 公开商品页面抓取完整商品数据,无需任何 API Key,纯 Python 标准库。
When to Use
- "Get the details for this Amazon product: [URL]"
- "What's the price of ASIN B0XXXXXXXX on Amazon?"
- "Fetch product info from amazon.com/dp/B0XXXXXXXX"
- "Look up [product] on Amazon and tell me the price"
Quick Start
# 通过 URL
python scripts/fetch.py --url "https://www.amazon.com/dp/B0CX44VMKZ"
# 通过 ASIN
python scripts/fetch.py --asin B0CX44VMKZ
# JSON 格式输出
python scripts/fetch.py --asin B0CX44VMKZ --json
Output Fields
| 字段 | 说明 |
|---|---|
asin | Amazon 商品编号 |
title | 商品标题 |
price | 当前价格数字 |
currency | 货币符号(如 $、€) |
rating | 星级评分(如 4.5) |
reviews | 评论数量 |
availability | 库存状态 |
image_url | 主图 URL |
product_url | Amazon 商品链接 |
No API Key Needed
直接解析 Amazon 公开商品页面 HTML。使用真实浏览器 User-Agent 避免被屏蔽。
提示: Amazon 偶尔会返回 CAPTCHA 页面。若出现此情况,稍后重试即可。大批量抓取请使用
skill-amazon-spapi(需要卖家凭证)。
Configuration (openclaw.json)
无需配置 API Key。可选配置:
{
"skills": {
"entries": {
"amazon-product-fetcher": {
"enabled": true
}
}
}
}
Troubleshooting
| 问题 | 解决方案 |
|---|---|
| 价格为空 | Amazon 可能使用了不同的价格 widget;重试一次 |
| CAPTCHA / 503 | 等待 30 秒后重试 |
| 无法从 URL 提取 ASIN | 改用 --asin 直接传入 |
Comments
Loading comments...
