taobao-product-reviews
它能做什么
它打开淘宝或天猫商品的评价区,收集买家评价,包括日期、所购规格、文字和图片链接。适用于研究买家反馈的卖家和分析人员。
适用场景
- ✓当卖家想阅读买家对某件淘宝商品的反馈时。
- ✓当分析人员想对天猫商品评价进行情感分析时。
- ✓当品牌想查看哪些所购规格的投诉最多时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/ecommerce/taobao-product-reviews/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请收集淘宝商品 123456789 的买家评价,并总结常见的抱怨。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能检查淘宝登录状态,打开商品页,加载评价区,然后读取每条评价的用户名、日期、所购规格、文字和图片。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Taobao — Product Reviews
itemId → paginated customer reviews (reviewer, date, purchased SKU, text, photos)
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Navigate to a Taobao/Tmall product page, load the reviews section, and extract customer review content.
Prerequisites
- Target page is already open in the browser:
https://item.taobao.com/item.htm?id={itemId} - User is logged in to Taobao (user avatar or nickname visible in the page header)
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.
2. Login Verification
If login status for Taobao has been confirmed in the current session → skip this step.
Otherwise: open https://www.taobao.com and observe the page header:
- User nickname visible → logged in, continue execution
- Login button visible → not logged in, inform the user that Taobao login is needed first, assist the user in completing the login flow
User refuses or cannot log in → terminate execution.
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, never bypassing authentication or access controls. JS code is encapsulated in Python files under the
scripts/directory, invoked viaeval "$(python scripts/xxx.py {params})".$(...)is bash syntax; it is recommended to use the bash tool for execution.
DOM: product reviews (data extraction)
The reviews section is lazy-loaded below the main product area. Follow these steps to load and extract reviews:
navigate "https://item.taobao.com/item.htm?id={itemId}"wait stable- Close any popup: look for buttons with text "开心收下", "不了", "关闭" and click to dismiss
- Scroll to trigger lazy loading of the tabs/reviews section:
scroll down --amount 8000 wait --selector "[class*='tabTitleItem--']" --state attached --timeout 10000- If timeout:
scroll down --amount 8000again and retry wait once more - If still no tabs after 2 attempts: take
screenshotto confirm page state; the product page may be rendering in a condensed mode — check Known Limitations below
- If timeout:
eval "$(python scripts/extract-reviews.py '{itemId}')"
Output example:
[
{
"username": "一笑奈何",
"date": "2026-06-03",
"purchasedSku": "轻巧白|英转中转换器【适用国内电器】适用马来西亚/新加坡等国家",
"content": "商品非常好,造工很用心!,还会再回购!",
"photos": [
"https://gw.alicdn.com/bao/uploaded/i1/O1CN015Cyg4b2FPR2YNq3PD_!!4611686018427383816-0-rate.jpg"
],
"rating": null
}
]
Notes:
purchasedSku: the specific variant the reviewer purchased (extracted from "已购:{sku}" prefix in review header)content: review text body; may be empty if reviewer submitted only photosphotos: review photo URLs; empty array if no photosrating: star rating; not always visible in current page layout (null is common)- Reviews shown are the default sort (most recent or most helpful as determined by Taobao)
Error handling: if result count = 0 after scroll attempts, the reviews section may not have loaded in the current browser rendering environment. Try navigating to the product page fresh (navigate again) and repeating the scroll sequence. If still failing, this is a known rendering limitation — see Known Limitations below.
DOM: paginate to next review page
After extracting current page reviews:
eval "$(python scripts/next-review-page.py)"- Returns
{"hasNext": true, "buttonText": "下一页"}if next page exists, or{"hasNext": false}if on last page
- Returns
- If
hasNextis true:stateto find the "下一页" button index →click <index> wait stable- Re-run
eval "$(python scripts/extract-reviews.py '{itemId}')"
Enum Parameters
[collection failed] Sort/filter options for reviews (e.g., newest, most helpful): these controls exist in the reviews section UI but require the tabs section to be loaded; their URL parameters are not exposed and must be set via UI clicks on the sort tabs within the reviews section.
Pagination
DOM Pagination: Click the "下一页" button in the reviews section footer. Each page shows ~10 reviews. Termination: "下一页" button is absent or hasNext returns false.
Success Criteria
`result cou
常见问题
它需要淘宝登录吗?
需要。该技能会先检查是否有已登录的淘宝用户。
它包含图片吗?
包含。当评价中有图片时,它会返回图片链接。
它能浏览很多页评价吗?
能。该技能会逐页读取评价区。
详情
作者的原始描述
Fetch customer reviews for a Taobao or Tmall product by itemId, returning reviewer name, date, purchased variant, review text, and photo URLs. Use when user asks to get product reviews from Taobao, scrape Taobao customer feedback, extract buyer reviews by item ID, collect Tmall ratings and comments, 采集淘宝商品评价, 抓取淘宝买家评论, 获取淘宝商品评论, 天猫商品评价抓取, 按商品ID获取评价. Also applies to sentiment analysis of product reviews, building review datasets, and monitoring product rating changes.
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14276
- 许可证
- 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 房源的公开详情,例如照片、设施、评分和房屋规则。