taobao-keyword-search
browser-act/skills · Agent Skill
Searches Taobao and Tmall for products by keyword, returning a paginated list of product cards with price, shop, and image.
Jump to install ↓Overview
| Publisher | |
|---|---|
| Repository | browser-act/skills ↗ |
| Skill folder | taobao-keyword-search |
| Stars | 5,825 |
| Bundled files | 1 |
| License | MIT |
| Last updated | June 9, 2026 |
| Links | Skill source ↗ · Repository ↗ |
Mozgi check
What we found in the skill files. Details come with a subscription.
Installation
A skill is a folder with a SKILL.md file. Pick your agent and run the commands in a terminal (macOS, Linux or Git Bash on Windows) from your project root.
Copy the prompt into Claude, Codex or another assistant: it will review the skill and install it for you.
Install the “taobao-keyword-search” skill from mozgi.io (https://mozgi.io/skills/taobao-keyword-search/) for me. 1. Download the archive: https://mozgi.io/skills/taobao-keyword-search/download If it fails, take the skill folder from the source: https://github.com/browser-act/skills/tree/main/solutions/ecommerce/taobao-keyword-search 2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me. 3. Put the “taobao-keyword-search” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.). 4. Make sure <skills folder>/taobao-keyword-search/SKILL.md exists. 5. Briefly tell me what this skill does and offer to try it on my task. If you cannot do a step yourself, tell me what to click or type.
git clone --depth 1 --branch main https://github.com/browser-act/skills.git /tmp/skills mkdir -p .claude/skills cp -r /tmp/skills/solutions/ecommerce/taobao-keyword-search .claude/skills/taobao-keyword-search
Restart Claude Code — the skill appears in the list; call it manually with /taobao-keyword-search. For all projects use ~/.claude/skills.
git clone --depth 1 --branch main https://github.com/browser-act/skills.git /tmp/skills mkdir -p .agents/skills cp -r /tmp/skills/solutions/ecommerce/taobao-keyword-search .agents/skills/taobao-keyword-search
Codex looks for skills in .agents/skills from the current folder up to the repo root; call one with /skills or $taobao-keyword-search. For all projects use ~/.agents/skills.
git clone --depth 1 --branch main https://github.com/browser-act/skills.git /tmp/skills mkdir -p .cursor/skills cp -r /tmp/skills/solutions/ecommerce/taobao-keyword-search .cursor/skills/taobao-keyword-search
Cursor picks the skill up on start; call it with “/” in Agent chat. Cursor also reads .claude/skills and .agents/skills. For all projects use ~/.cursor/skills.
git clone --depth 1 --branch main https://github.com/browser-act/skills.git /tmp/skills mkdir -p .gemini/skills cp -r /tmp/skills/solutions/ecommerce/taobao-keyword-search .gemini/skills/taobao-keyword-search
Gemini CLI offers to activate the skill when a task matches — you approve it. For all projects use ~/.gemini/skills.
Read SKILL.md and any companion files before deciding whether to install. Click a file to preview it.
SKILL.md contents
Original author text · read-onlyTaobao — Keyword Search
> keyword + optional filters → paginated product listing (itemId, title, price, shop, image, sales)
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Search Taobao/Tmall for products by keyword and extract product cards from search results pages.
Prerequisites
- Target page is already open in the browser:
https://s.taobao.com/search - 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 (e.g., "心林vs妞妞") → logged in, continue execution
- "亲,请登录" or 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 via eval "$(python scripts/xxx.py {params})". $(...) is bash syntax; it is recommended to use the bash tool for execution.
DOM: product search results (data extraction)
Navigate to search results URL, then extract:
1. navigate "https://s.taobao.com/search?q={keyword}&page={page}&ie=utf8"
2. wait stable
3. eval "$(python scripts/search-products.py '{keyword}' --page {page} --sort '{sort}' --tab '{tab}' --start-price {startPrice} --end-price {endPrice})"
URL Parameters:
q: URL-encoded keywordpage: page number, 1-based, default1sort: sort order — empty string (default/recommended),sale-desc(by sales),price-asc(price low→high),price-desc(price high→low)tab:mallfor Tmall-only results; omit for all resultsstartPrice/endPrice: price range filter in yuan (e.g.,startPrice=100&endPrice=500)
Output example:
[
{
"itemId": "694593508978",
"itemUrl": "https://item.taobao.com/item.htm?id=694593508978",
"title": "蓝牙耳机2025新款官方",
"subTitle": "AI耳机热卖榜第1名",
"priceYuan": 79.9,
"priceDesc": "券后价",
"imageUrl": "https://img.alicdn.com/imgextra/...",
"salesCount": "40万+人付款",
"shopName": "金运旗舰店",
"location": "广东",
"rating": null,
"tags": ["政府补贴15%", "官方立减26元"]
}
]
Notes:
priceYuanis the displayed price (may be post-coupon price, not pre-coupon)priceDescindicates price type:券后价(after coupon),补贴价(subsidized price), etc.ratingis rarely shown on search cards; null is expected- Sponsored/ad items have
itemUrlpointing toclick.simba.taobao.com— they will haveitemIdextracted from query params
Enum Parameters
[collection failed] sort values: confirmed values are empty string (default), sale-desc, price-asc, price-desc; no API for enumeration, values are hardcoded constants.
Pagination
URL Pagination: URL pattern https://s.taobao.com/search?q={keyword}&page={N}&ie=utf8, increment page from 1. Each page returns ~47 items. Termination: when result count < 10 or returned items duplicate previous page.
Success Criteria
result count >= 1 and itemId non-null rate = 100%
Known Limitations
- Requires Taobao login; unauthenticated sessions redirect to login page
- Prices shown are displayed prices (may be post-coupon), not pre-discount prices
- Sponsored/ad items appear at unpredictable positions in results
- Price filter (
startPrice/endPrice) filters on pre-coupon prices, so post-coupon prices displayed may fall outside the requested range near boundaries - Taobao may return different result counts across pages; page count is approximate
Execution Efficiency
- Batch orchestration: Write a bash script to loop through keywords serially within a single session; do not parallelize within one browser (prone to triggering anti-scraping restrictions). Add 2–3 second intervals between page navigations. To increase throughput, open multiple stealth browser sessions and distribute keywords across them.
- Test before batch execution: After writing a batch script, you must first test with 1–2 keywords to verify the script runs correctly; only then run the full batch. Never skip testing and execute in batch directly.
- Reduce redundant pre-operations: When scraping multiple pages for one keyword, navigate page 2, 3 etc. within the same session without re-login checks.
- Error resumption: Save results item by item during batch processing; on failure, resume from the breakpoint rather than starting over.
Experience Notes
Path: {working-directory}/browser-act-skill-forge-memories/taobao-keyword-search.memory.md
Before execution: If the file exists, read it first — it records unexpected situations encountered during past executions (e.g., a strategy has become ineffective); adjust strategy order accordingly.
After execution: If an unexpected situation is encountered (strategy became ineffective, page redesigned, anti-scraping upgraded, better path discovered), append a line:
{YYYY-MM-DD}: {what happened} → {conclusion}
Normal execution does not write to the file. Do not record what keywords were used or how many results were returned — those are task outputs, not experience.
Frequently asked questions
What does the taobao-keyword-search skill do?
Searches Taobao and Tmall for products by keyword, returning a paginated list of product cards with price, shop, and image.
How do I install taobao-keyword-search?
Open the “Installation” block on this page and pick your agent — Claude Code, Codex, Cursor or Gemini CLI — for ready-made commands that copy the skill folder to the right place. Or copy the prompt from the “Via assistant” tab and let the assistant review and install the skill.
Which AI models work with taobao-keyword-search?
Skills are plain Markdown instructions (the Agent Skills format), so taobao-keyword-search works with any agent that reads SKILL.md: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and more. The model loads the instructions only when a task matches the skill's description.
Is taobao-keyword-search free?
The skill is published openly by browser-act under the MIT license. The skill itself costs nothing — you only pay your AI provider for the tokens you use.
Is it safe to install skills?
A skill is a set of instructions your agent will follow, so read SKILL.md and its companion files before installing. Scripts in the skill folder only run if your agent runs them — keep an eye on what it does and do not grant unnecessary permissions.
How is a skill different from an MCP server or a plugin?
An MCP server or plugin gives the model new tools — code that runs and returns a result. A skill gives it knowledge and process: how to approach a task, which steps to follow and what good output looks like. It needs no server or API key.