taobao-shop-catalog
它能做什么
它打开淘宝或天猫店铺的目录页面,列出其商品的商品 ID 和标题。适用于监控店铺的分析人员和比较店铺的卖家。
适用场景
- ✓当分析人员想获取某家淘宝店铺的全部商品,用于研究竞争对手时。
- ✓当卖家想长期观察某店铺的库存变化时。
- ✓当团队需要店铺中的商品 ID,以便之后收集详情时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/ecommerce/taobao-shop-catalog/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请列出淘宝店铺 987654 的商品,包括它们的商品 ID 和标题。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能检查用户是否已登录淘宝,打开店铺的类目页面,并读取其商品列表,逐页返回商品。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Taobao — Shop Catalog
shopId → paginated shop product listing (itemId, title, image URL)
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Navigate to a Taobao or Tmall shop's catalog page and extract product listings.
Prerequisites
- Target page is already open in the browser:
https://shop{shopId}.taobao.com/category.htm - 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: shop catalog product list (data extraction)
Navigate to the shop's catalog page, then extract:
navigate "https://shop{shopId}.taobao.com/category.htm?search=y&pageNo={page}"- Note: Tmall shops redirect to
https://{shopName}.tmall.com/category.htm?search=y&pageNo={page} - The
search=yparameter activates the paginated search mode
- Note: Tmall shops redirect to
wait stableeval "$(python scripts/extract-catalog.py '{shopId}' --page {page})"
Parameters:
shopId: numerical shop ID (e.g.,67095450); found in shop URL asshop{shopId}.taobao.com--page: page number, 1-based, default1
Output example:
[
{
"itemId": "1041516493508",
"title": "绿联T8梯形排插插座转换器插线板大间距宿舍桌面充电多孔位插排",
"imageUrl": "https://img.alicdn.com/imgextra/...",
"itemUrl": "https://detail.tmall.com/item.htm?id=1041516493508"
}
]
Notes:
priceis not included — Taobao shop catalog pages use font-based price obfuscation that cannot be decoded via DOM extraction. Use thetaobao-product-detailskill to fetch prices for specific items.imageUrlmay be a lazy-loaded URL fromdata-ks-lazyload-customattribute when the image has not scrolled into view
Error handling: if result count = 0, check that the page loaded correctly (screenshot), confirm the shopId is valid, and retry. Some shops may be Tmall-only and require following the redirect URL.
Pagination
URL Pagination: URL pattern https://shop{shopId}.taobao.com/category.htm?search=y&pageNo={N} (or https://{shopName}.tmall.com/category.htm?search=y&pageNo={N} after redirect), increment pageNo from 1. Each page returns up to 60 items. Termination: when result count = 0 or next page link href with pageNo={N+1} is absent from the DOM.
Next page link selector: a[href*="pageNo"] (contains the next page number).
Success Criteria
result count >= 1 and itemId non-null rate = 100%
Known Limitations
- Prices are font-obfuscated on the shop catalog page and cannot be extracted; fetch individual item prices via
taobao-product-detail - Some shop categories are not shown in the default
category.htmview; category-specific browsing requires clicking category links in the shop nav - Shop redirect from
shop{id}.taobao.comto{name}.tmall.comchanges the URL structure; the script handles both
Execution Efficiency
- Batch orchestration: Write a bash script to loop through pages serially; add 2–3 second intervals between navigations.
- Test before batch execution: After writing a batch script, you must first test with 1–2 pages to verify the script runs correctly; only then run the full batch. Never skip testing and execute in batch directly.
- Reduce redundant pre-operations: Stay in the same session for all pages of one shop without re-login checks.
- Error resumption: Save results page by page dur
常见问题
店铺由什么标识?
它使用店铺地址中出现的店铺 ID。
它需要登录吗?
需要。该技能会先检查是否有已登录的淘宝用户。
每件商品包含什么?
每件商品包含其商品 ID、标题和图片地址。
详情
作者的原始描述
Browse a Taobao or Tmall shop's product catalog by shopId, returning paginated product listings with itemId and title. Use when user asks to scrape a Taobao shop, get all products from a store, list items in a Taobao/Tmall shop, fetch shop catalog by userId or shopId, 采集淘宝店铺商品, 抓取淘宝店铺所有商品, 获取天猫店铺商品列表, 淘宝店铺目录, 按店铺ID采集商品. Also applies to shop inventory monitoring, competitor store analysis, and bulk itemId collection from a specific seller.
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14277
- 许可证
- 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 房源的公开详情,例如照片、设施、评分和房屋规则。