ecommerce-reviews
它能做什么
它从商品或评论页面读取顾客评论,并返回每条评论的评分、标题、正文和日期。适用于研究顾客反馈的卖家和分析人员。
适用场景
- ✓当卖家想阅读某商品跨多页的顾客评论时。
- ✓当分析人员想了解有多少评论是已验证购买时。
- ✓当团队想从商品评论中找出普遍的好评或抱怨时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/ecommerce/ecommerce-reviews/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请从这个商品页面收集最近的 20 条评论,包括评分和是否已验证购买。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能进入评论区,读取每条评论的评分、评论者姓名、日期、标题、正文和“有用”投票数,并以带分页的列表返回。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
E-commerce — Product Reviews
Product URL → paginated customer reviews (reviewer, rating, date, title, body, verified, helpful votes)
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Extract customer reviews from any publicly accessible e-commerce product or reviews page using a multi-strategy approach (JSON-LD Review → Amazon DOM → WooCommerce DOM → generic microdata → generic CSS patterns).
Prerequisites
- Target browser is open and connected
- No login required for public review pages
Pre-execution Checks
1. Tool Readiness
If browser-act has been confirmed available in the current session → skip this step.
Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.
Capability Components
This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page. JS code is encapsulated in Python files under the
scripts/directory, invoked viaeval "$(python scripts/xxx.py {params})". Use the bash tool for execution.
DOM: Extract reviews from current page
Navigate to the product/reviews page first, then extract:
eval "$(python scripts/extract-reviews.py --max-reviews 20)"
Parameters:
--max-reviews: max reviews to return per page, default 20
Output example:
{
"count": 20,
"reviews": [
{
"reviewer": "John D.",
"rating": 5.0,
"date": "Reviewed in the United States on May 15, 2026",
"title": "Great product, exactly as described",
"body": "I've been using this for two weeks and it works perfectly...",
"verified": true,
"helpful_votes": 42
}
]
}
Composite: Product URL → reviews with sort and pagination
Step 1 — Navigate to reviews page:
| Platform | Reviews URL pattern |
|---|---|
| Amazon | https://www.amazon.com/product-reviews/{ASIN}?sortBy=recent (most recent) or sortBy=helpful |
| Amazon (from product page) | Scroll to reviews section or click "See all reviews" link, wait stable |
| WooCommerce | Product page URL with #reviews anchor; reviews are inline on the page |
| Shopify | Reviews are typically inline on the product page |
| Generic | Navigate to product URL; reviews section is usually below product info |
Step 2 — Extract reviews:
eval "$(python scripts/extract-reviews.py --max-reviews 20)"
Step 3 — Paginate (Amazon): Amazon review pages support URL pagination:
- Most recent sort:
https://www.amazon.com/product-reviews/{ASIN}?sortBy=recent&pageNumber={page} - Helpful sort:
https://www.amazon.com/product-reviews/{ASIN}?sortBy=helpful&pageNumber={page}
For each page: navigate {reviews_url_with_page} → wait stable → re-run extract-reviews.py
Termination: when count returns 0, or no new reviews appear compared to prior page.
Pagination
URL Pagination (Amazon): Increment pageNumber parameter in the reviews URL. Start from 1.
DOM Pagination (WooCommerce/generic): Look for a "Next" pagination link on the reviews section. Use eval "$(python ../ecommerce-listing/scripts/extract-listing-next-page.py)" to detect it, then navigate.
Termination: has_next is false, or count is 0.
Success Criteria
result.count >= 1 AND reviews[0].body != null
Known Limitations
- Amazon: navigate from
https://www.amazon.comfirst on fresh sessions to avoid bot detection - JSON-LD reviews are often limited to a small subset (3–5 reviews) even when hundreds exist; use the Amazon-specific URL for full review extraction
- WooCommerce and Shopify review data depends on which review plugin is installed; body extraction may be null if a non-standard plugin is used
- Review dates may be locale-formatted strings rather than ISO dates depending on the site's configuration
Execution Efficiency
- Batch orchestration: Loop through review pages serially; add 1–2 second intervals between navigations
- Test before batch execution: Test with page 1 before running multi-page extraction
- Error resumption: Record page number; on failure, resume from last successful page
Experience Notes
Path: {working-directory}/browser-act-skill-forge-memories/ecommerce-scraper-ecommerce-reviews.memory.md
Before execution: If the file exists, read it first — it records unexpected situation
常见问题
它需要登录吗?
不需要。它读取公开的评论页面。
它能浏览多个评论页吗?
能。它支持在评论区中进行分页。
每条评论包含什么?
每条评论包含评论者姓名、星级评分、日期、标题、正文、是否已验证购买以及“有用”投票数。
详情
作者的原始描述
Extract customer reviews from any e-commerce product page or reviews page. Returns reviewer name, star rating, date, review title, review body, verified purchase status, and helpful votes per review. Works on Amazon, WooCommerce, Shopify, and any site with standard review markup. Supports pagination for multi-page review sections. Use when: product reviews, customer feedback, review scraping, get reviews, sentiment analysis data, review extraction, customer ratings, extract customer opinions, product feedback, user reviews, review mining, bulk review collection, review analysis, scrape ratings
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14266
- 许可证
- MIT
- 更新时间
- 2026/8/24
评论
- …
同一仓库的更多技能
browser-act-skill-forge
6.3k帮你的智能体探索一次网站,并保存一个带脚本的可复用技能,使之后从该网站提取数据更快。
browser-act
6.3k帮你的智能体运行浏览器自动化工具,打开页面、读取渲染后的内容、填写表单、截图,并管理已登录的会话。
1688-product-detail
6.3k帮你的智能体从 1688.com 批发页面提取商品详情,例如价格阶梯、规格变体、卖家统计数据和属性。
airbnb-listing-detail
6.3k帮你的智能体根据 ID 获取 Airbnb 房源的公开详情,例如照片、设施、评分和房屋规则。