amazon-bestseller-listing
Skill này làm gì
Skill giải thích cách đọc danh sách sản phẩm đã xếp hạng trên trang Bán chạy nhất của Amazon, qua các danh mục và các trang. Dành cho người mua sắm và nhà phân tích muốn xếp hạng hiện tại của một danh mục.
Khi nào nên dùng
- ✓Khi nhà phân tích muốn 50 sản phẩm hàng đầu trong một danh mục Amazon kèm thứ hạng.
- ✓Khi người bán muốn xem sản phẩm của mình đứng ở đâu trên bảng bán chạy của danh mục.
- ✓Khi ai đó cần trang tiếp theo của một danh sách Bán chạy nhất.
Liên kết skill
https://github.com/browser-act/skills/blob/main/solutions/ecommerce/amazon-bestseller-listing/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cho tôi xem các sản phẩm hàng đầu trong danh sách Bán chạy nhất của Amazon cho dao nhà bếp, kèm giá và đánh giá.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill mở trang Bán chạy nhất trong trình duyệt và đọc các thẻ sản phẩm đã xếp hạng, gồm thứ hạng, tiêu đề, liên kết, giá, số sao và số lượt đánh giá. Nó cũng đọc thông tin danh mục và phân trang.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Amazon — Best Sellers Listing
Input any Amazon Best Sellers (/zgbs/ or /gp/bestsellers/) URL → output ranked product list (position 1..N) + category info + pagination.
Language
All process output to user (progress updates, process notifications) follows the user's language.
Objective
Extract the ranked product list from any Amazon Best Sellers page for any category or sub-category, across all Amazon regional TLDs, with pagination to walk beyond the first 50 items.
Prerequisites
- Target page is already open in the browser: any Amazon Best Sellers URL (e.g.
https://www.amazon.com/gp/bestsellers/{category-slug},https://www.amazon.com/Best-Sellers/zgbs/{category-slug},https://www.amazon.com/Best-Sellers/zgbs/{category-slug}/{node-id}, or the paginated variant?pg={pageNumber}) - No login required
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 bestseller cards from current best-sellers page
Bestseller pages are server-rendered — no XHR/fetch API for chart data. Cards use the stable #gridItemRoot container (30 cards per page, 2 pages up to top 50).
navigate {any Amazon bestseller URL, e.g. https://www.amazon.com/gp/bestsellers/{category}, https://www.amazon.com/Best-Sellers/zgbs/{category}?pg=2}wait stable- Extract:
browser-act --session {name} eval "$(python scripts/extract-bestseller.py)"
On error path, the script returns:
{"error": true, "message": "no bestseller cards found - is this a /bestsellers/, /gp/bestsellers/ or /zgbs/ page?"}when#gridItemRootselectors match zero cards (possibly wrong URL, or Amazon returned an interstitial)
Output example:
{
"categoryName": "Electronics", // parsed from document.title
"categoryFullName": "Best Electronics", // full title
"categoryUrl": "https://www.amazon.com/gp/bestsellers/electronics", // origin + pathname
"currentPage": 1, // page from .a-pagination .a-selected, defaults 1
"hasNextPage": true, // true when 'Next page' pagination link exists
"nextPageUrl": "https://www.amazon.com/Best-Sellers/zgbs/electronics/?pg=2", // absolute URL, null when last page
"itemCount": 30, // typically 30 per page
"items": [
{
"rank": 1, // extracted from .zg-bdg-text (e.g. "#1"), falls back to grid index
"asin": "B08JHCVHTY", // 10-char ASIN from data-asin
"title": "blink plus plan with monthly auto-renewal", // truncated title from p13n-sc-css-line-clamp
"url": "https://www.amazon.com/Blink-Plus-Plan-monthly-auto-renewal/dp/B08JHCVHTY/...", // absolute product URL
"image": "https://images-na.ssl-images-amazon.com/images/I/31...png", // thumbnail
"imageAlt": "blink plus plan with monthly auto-renewal", // img alt
"price": {"value": 11.99, "currencyRaw": "$", "raw": "$11.99"}, // null when not shown
"stars": 4.4, // 0-5 rating, null when no reviews
"reviewCount": 277638, // total ratings, null when absent
"ratingRaw": "4.4 out of 5 stars" // full a11y text
}
]
}
Pagination
URL Pagination: Amazon bestseller pages use ?pg={N} (starting at 1, typically pages 1-2 with 30 cards each = top 50). To iterate:
- Read
nextPageUrlf
Câu hỏi thường gặp
Nó có hoạt động trên các trang quốc gia của Amazon không?
Có. Skill nói nó hoạt động trên các trang khu vực của Amazon.
Nó có đi xa hơn trang đầu tiên không?
Có. Nó đọc trạng thái phân trang và có thể chuyển sang trang tiếp theo của danh sách.
Có cần đăng nhập không?
Không. Skill nói các trang Bán chạy nhất không yêu cầu đăng nhập.
Chi tiết
Mô tả gốc của tác giả
Amazon Best Sellers listing scraper: extract product cards from any Amazon Best Sellers (zgbs) or /gp/bestsellers/ category page — returns rank (position on chart), asin, title, url, image, imageAlt, price, stars, reviewCount, ratingRaw per item, plus category metadata (categoryName, categoryFullName, categoryUrl) and pagination state (currentPage, hasNextPage, nextPageUrl). Works across all Amazon regional TLDs (amazon.com, amazon.co.uk, amazon.de, amazon.co.jp, amazon.fr, amazon.it, amazon.es, amazon.ca, amazon.com.au, amazon.in, etc.). Use when user mentions Amazon Best Sellers, Amazon best
repo: browser-act/skills
Độ phổ biến
- Sao GitHub
- 6.3k
- Vị trí xếp hạng
- #14252
- Giấy phép
- MIT
- Cập nhật
- 24/8/2026
Bình luận
- …
Thêm skill từ kho mã này
browser-act-skill-forge
6.3kGiúp agent của bạn khám phá một website một lần rồi lưu thành một skill tái sử dụng với các script, để lấy dữ liệu từ site đó sau này nhanh hơn.
browser-act
6.3kGiúp agent của bạn chạy công cụ tự động hóa trình duyệt để mở trang, đọc nội dung đã render, điền biểu mẫu, chụp ảnh màn hình và quản lý phiên đã đăng nhập.
1688-product-detail
6.3kGiúp agent của bạn lấy chi tiết sản phẩm từ một trang bán buôn 1688.com, như bậc giá, biến thể, thống kê người bán và thuộc tính.
airbnb-listing-detail
6.3kGiúp agent của bạn lấy chi tiết công khai của một tin đăng Airbnb theo ID, như ảnh, tiện nghi, đánh giá và nội quy nhà.
Skill tương tự
tavily
394kGiúp agent của bạn tìm kiếm web bằng Tavily và lấy văn bản từ các trang cụ thể, với tùy chọn về độ sâu, tên miền và ngày tháng.
blogwatcher
394kCho phép agent của bạn theo dõi blog và nguồn cấp RSS hoặc Atom, kiểm tra bài viết mới và đánh dấu những bài bạn đã đọc.
data-scraper-agent
280kGiúp agent tự động thu thập dữ liệu từ mọi nguồn công khai. Có thể lên lịch, bổ sung thông tin và lưu kết quả. Hữu ích để theo dõi dữ liệu trực tuyến.