amazon-search-listing
它能做什么
它读取 Amazon 任意搜索或类目页面上的商品卡片,并返回价格、评分、标识和位置信息。适用于查看类目结果的购物者和分析人员。
适用场景
- ✓当购物者想要一份 Amazon 搜索结果的整洁列表,包括价格和评分时。
- ✓当分析人员想查看类目页面上哪些商品是赞助商品或被标记为畅销品时。
- ✓当有人需要 Amazon 搜索结果的下一页时。
技能链接
https://github.com/browser-act/skills/blob/main/solutions/ecommerce/amazon-search-listing/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请读取 Amazon 上人体工学椅的搜索结果,列出价格、评分,以及哪些是赞助商品。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能在浏览器中打开搜索或类目的网址,读取商品卡片和分页信息,并返回每件商品及其位置和标识。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Amazon — Search & Category Listing
Input any Amazon search results, keyword search, or category browse URL → output per-item product cards + pagination state.
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Extract structured product listings from any Amazon SERP or category browse page across all Amazon regional TLDs, including full pagination support to walk multiple pages of a keyword or category.
Prerequisites
- Target page is already open in the browser: any Amazon search URL (e.g.
https://www.amazon.com/s?k={keyword}), category browse URL (e.g.https://www.amazon.com/s?bbn={cat}&rh=n%3A{node}), or category deep link - No login required; results reflect the browser's geolocation and Amazon domain
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, never bypassing authentication or access controls. Its role is equivalent to copy-pasting on the user's behalf — the data is already on screen, automation merely saves time. JS code is encapsulated in Python files under the
scripts/directory, invoked viabrowser-act --session {name} eval "$(python scripts/xxx.py {params})". The$(...)is bash command substitution — it runs the python script, captures its printed JS text, and hands that JS string as a single argument tobrowser-act eval. Do not runeval "$(python ...)"as a bare shell command; that would ask bash to execute the JS as shell, which fails.
DOM: extract product cards from current search/category page
Server-rendered HTML — no XHR/fetch API for listing data. Cards use the stable [data-component-type="s-search-result"] container.
navigate {any Amazon search or category URL}(e.g.https://www.amazon.com/s?k={keyword},https://www.amazon.com/s?k={keyword}&page={pageNumber},https://www.amazon.com/s?bbn={browseNode}&rh=n%3A{nodeId},https://www.amazon.co.uk/s?k={keyword})wait stable- Extract:
browser-act --session {name} eval "$(python scripts/extract-search-results.py)"
Output example:
{
"currentPage": 1, // page number as displayed by the pagination widget
"hasNextPage": true, // true when a non-disabled next link exists
"nextPageUrl": "https://www.amazon.com/s?k=laptop&page=2&...", // absolute URL of next page, or null
"totalResultsApprox": 100000, // parsed from "1-16 of over 100,000 results", or null
"itemCount": 16, // number of cards found on this page
"items": [
{
"asin": "B09S3HNMHF", // 10-char Amazon Standard Identification Number
"uuid": "d319ac5e-6161-4e4d-8ae5-1c63b8748308", // per-render tracking id, null when absent
"positionIndex": 3, // data-index attribute, indicates ordinal position in results
"title": "Samsung 14\" Galaxy Chromebook Go ...", // product title from h2 span
"url": "https://www.amazon.com/.../dp/B09S3HNMHF/...", // absolute product detail URL
"image": "https://m.media-amazon.com/images/I/51...jpg", // thumbnail from img.s-image
"imageAlt": "Samsung 14\" Galaxy Chromebook ...", // truncated title from img alt
"price": {"value": 179.99, "currencyRaw": "$", "raw": "$179.99"}, // current price, null when no offer
"listPrice": {"value": 190.99, "currencyRaw": "$", "raw": "$190.99"}, // strike-through list price, null when absent
"stars": 4.3, // 0-5 rating, null when no reviews
"reviewCount": 632, // ratings count, null when no reviews
"ratingRaw": "4.3 out of 5 stars, rating details",
"badges": [{"label": "Overall Pick", "supp": null}], // all badges (Amazon's Choice, Best Seller, Overall Pick, deal labels)
"isAmazonChoice": true, // derived from badge text
"isBestSeller": false, // derived from badge text
"isSponsored": false,
常见问题
它需要登录吗?
不需要。该技能说明无需登录,结果会反映浏览器所在的位置。
它能读取多于一页的内容吗?
能。它会返回分页信息,以便请求下一页。
每张卡片包含什么?
每张卡片包含 ASIN、标题、链接、图片、价格、星级、评论数、标识和赞助状态。
详情
作者的原始描述
Amazon search and category listing scraper: extract product listings from any Amazon search results page, keyword search URL, or category browse page and return per-item cards (asin, title, url, image, price, listPrice, stars, reviewCount, badges, isAmazonChoice, isBestSeller, isSponsored, delivery, boughtInPast, positionIndex) plus pagination state (currentPage, hasNextPage, nextPageUrl, totalResultsApprox). Works across all Amazon regional TLDs (amazon.com, amazon.co.uk, amazon.de, amazon.co.jp, amazon.in, amazon.fr, amazon.ca, amazon.com.au, amazon.it, amazon.es, amazon.com.mx, amazon.com.b
repo: browser-act/skills
热度
- GitHub 星标
- 6.3k
- 排名
- #14260
- 许可证
- 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 房源的公开详情,例如照片、设施、评分和房屋规则。