
Taobao Keyword Search
FreeEfficiently scrape product listings from Taobao and Tmall.
Free · Opens the source repo
What Taobao Keyword Search does
The Taobao Keyword Search skill enables users to search for products on Taobao and Tmall by keyword, extracting relevant product listings directly from the search results. This skill is particularly useful for developers and data analysts looking to gather product information for competitive analysis, price monitoring, or bulk keyword searches. By utilizing the skill, users can retrieve paginated results that include essential details such as item ID, title, price, shop name, image URL, sales count, and tags associated with each product.
To use the skill, users must have their Taobao account logged in and the search page open in their browser. The skill operates by navigating to the search results URL and executing a Python script that parses the displayed product cards. It supports various query parameters, allowing users to filter results by price range and sort order, enhancing the flexibility of the search process. The skill is designed to respect the user's session and only extracts data that is already visible on the page, ensuring compliance with Taobao's access controls.
This skill is ideal for anyone involved in e-commerce analysis, whether they are developers building applications that require product data or marketers conducting research on market trends. With its ability to handle bulk searches and monitor prices across multiple keywords, the Taobao Keyword Search skill can significantly streamline the process of gathering product intelligence from one of the largest online marketplaces in China.
When to use it
Use this skill when you need to collect product information from Taobao or Tmall for analysis, monitoring, or research purposes.
When not to use it
This skill is not suitable for users who are not logged into Taobao or those who require access to data not displayed on the search results page.
What you can build with it
Competitive Analysis
Gather product data from Taobao to analyze competitor offerings and pricing strategies.
Price Monitoring
Set up regular searches to track price changes on specific products over time.
Bulk Keyword Searches
Execute searches for multiple keywords in a single session to collect extensive product listings.
How to install Taobao Keyword Search
View source1. Install with the skills CLI
npx skills add browser-act/skills/taobao-keyword-search --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by browser-actTaobao — 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 viaeval "$(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:
navigate "https://s.taobao.com/search?q={keyword}&page={page}&ie=utf8"wait stableeval "$(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 about Taobao Keyword Search
Similar skills
Mimic Dataset
Augment HDF5 recordings by replicating trajectories with noise.
Parallel Data Load
Efficiently load sharded datasets into cuPyNumeric arrays.
LaminDB
Manage and track biological datasets with ease.
TikTok Hashtag Videos
Scrape TikTok videos by hashtag with full metadata.
Douyin Video Search
Efficiently search and retrieve Douyin video data by keyword.
X Tweet Search by Query
Efficiently collect and analyze tweets using advanced queries.
