← 返回
未分类 Key

Pangolinfo Amazon Scraper: Products + Keywords + Reviews + Categories

Pangolinfo
未分类 community v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 119
下载
💾 2
安装
1
版本
#latest

概述

Pangolinfo Amazon Scraper

Scrape Amazon product data via Pangolin's APIs. Returns parsed JSON with product details, search results, rankings, reviews, and more across 13 Amazon regions.

When to Use This Skill

Intent (EN)Intent (CN)Action
---------
Look up an Amazon product / ASIN查一下亚马逊上的这个商品Product detail
Search Amazon for a keyword在亚马逊搜索关键词Keyword search
Show bestsellers in a category看看某个类目的畅销榜Bestsellers
Show new releases看看最新上架的商品New releases
Browse a category on Amazon浏览亚马逊某个分类Category products
Find products from a seller查看某个卖家的商品Seller products
Get reviews for a product看看这个产品的评论Reviews
Compare prices across regions对比不同国家亚马逊的价格Multi-region
Check seller/variant options查看其他卖家选项 / 变体Follow seller / Variant

Do not use for Google search, SERP, or non-Amazon data -- those require a different skill.

Prerequisites

  • Python 3.8+ (stdlib only, no pip install needed)
  • Pangolin account at pangolinfo.com
  • Environment variables: PANGOLIN_API_KEY (recommended) OR PANGOLIN_EMAIL + PANGOLIN_PASSWORD

macOS SSL error? Run: /Applications/Python\ 3.x/Install\ Certificates.command

Script Execution

python3 scripts/pangolin.py --content B0DYTF8L2W --mode amazon --site amz_us

Intent-to-Command Mapping

1. Product Detail by ASIN

python3 scripts/pangolin.py --asin B0DYTF8L2W --site amz_us

--asin auto-uppercases and selects amzProductDetail.

2. Keyword Search

python3 scripts/pangolin.py --q "wireless mouse" --site amz_us

Non-ASIN text auto-selects amzKeyword.

3. Bestsellers

python3 scripts/pangolin.py --content "electronics" --parser amzBestSellers --site amz_us

4. New Releases

python3 scripts/pangolin.py --content "toys" --parser amzNewReleases --site amz_us

5. Category Products

python3 scripts/pangolin.py --content "172282" --parser amzProductOfCategory --site amz_us

6. Seller Products

python3 scripts/pangolin.py --content "A1B2C3D4E5" --parser amzProductOfSeller --site amz_us

7. Follow Seller (Other Seller Options)

python3 scripts/pangolin.py --asin B0G4QPYK4Z --parser amzFollowSeller --site amz_us

8. Variant ASIN (Product Variants)

python3 scripts/pangolin.py --asin B0G4QPYK4Z --parser amzVariantAsin --site amz_us

9. Product Reviews

python3 scripts/pangolin.py --content B00163U4LK --mode review --site amz_us --filter-star critical

Star filter mapping:

User says--filter-star
------
all reviews / 所有评论all_stars
5-star / 五星five_star
4-star / 四星four_star
3-star / 三星three_star
2-star / 两星two_star
1-star / 一星one_star
positive / 好评positive
critical / 差评critical

Sort: --sort-by recent (default) or --sort-by helpful

Multiple pages: --pages N (each page costs 5 credits)

10. Product by URL (Legacy)

python3 scripts/pangolin.py --url "https://www.amazon.com/dp/B0DYTF8L2W" --mode amazon

Site code auto-inferred from URL domain.

Smart Defaults

  1. ASIN detection -- 10-char codes starting with B0 auto-select amzProductDetail
  2. Keyword detection -- non-ASIN text auto-selects amzKeyword
  3. Defaults to amz_us if no --site provided
  4. Auto-switches to review mode if --filter-star is set or --parser amzReviewV2
  5. Site inferred from URL when using --url
  6. Parser auto-inference only runs when --parser is not specified -- explicit --parser is never overridden

All CLI Options

FlagDescriptionDefault
---------
--qSearch query or keyword--
--urlTarget Amazon URL (legacy)--
--contentContent ID: ASIN, keyword, category Node ID, seller ID--
--asinASIN shortcut (auto-uppercases)--
--site / --regionAmazon site/region codeamz_us
--modeamazon or reviewamazon
--parserParser name (auto-inferred if omitted)auto
--zipcodeUS zipcode for localized pricing10041
--formatjson, rawHtml, markdownjson
--filter-starStar filter for reviewsall_stars
--sort-byReview sort: recent or helpfulrecent
--pagesReview pages (5 credits/page)1
--auth-onlyAuth check only (no credits)--
--rawOutput raw API response--
--timeoutTimeout in seconds120
--cache-keyPersist API key to ~/.pangolin_api_keyoff

Amazon Parsers

ParserUse CaseContent ValueEndpoint
------------
amzProductDetailSingle product pageASIN/api/v1/scrape
amzKeywordKeyword search resultsKeyword/api/v1/scrape
amzProductOfCategoryCategory listingNode ID/api/v1/scrape
amzProductOfSellerSeller's productsSeller ID/api/v1/scrape
amzBestSellersBest sellers rankingCategory keyword/api/v1/scrape
amzNewReleasesNew releases rankingCategory keyword/api/v1/scrape
amzFollowSellerOther sellersASIN/api/v1/scrape/follow-seller
amzVariantAsinProduct variantsASIN/api/v1/scrape/variant-asin
amzReviewV2Product reviewsASIN (via --mode review)/api/v1/scrape

Amazon Sites

CodeRegionDomain
---------
amz_usUnited Statesamazon.com
amz_ukUnited Kingdomamazon.co.uk
amz_caCanadaamazon.ca
amz_deGermanyamazon.de
amz_frFranceamazon.fr
amz_jpJapanamazon.co.jp
amz_itItalyamazon.it
amz_esSpainamazon.es
amz_auAustraliaamazon.com.au
amz_mxMexicoamazon.com.mx
amz_saSaudi Arabiaamazon.sa
amz_aeUAEamazon.ae
amz_brBrazilamazon.com.br

Cost

OperationCredits
------
Amazon scrape (json)1
Amazon scrape (rawHtml / markdown)0.75
Follow Seller1
Variant ASIN1
Review page5 per page

Credits consumed on success only (API code 0). Auth checks are free.

Output Format

JSON to stdout on success, error JSON to stderr on failure.

Success

{
  "success": true,
  "task_id": "02b3e90810f0450ca6d41244d6009d0f",
  "url": "https://www.amazon.com/dp/B0DYTF8L2W",
  "metadata": {
    "executionTime": 1791,
    "parserType": "amzProductDetail",
    "parsedAt": "2026-01-13T06:42:01.861Z"
  },
  "results": [ ... ],
  "results_count": 1
}

Error (stderr)

{
  "success": false,
  "error": {
    "code": "API_ERROR",
    "api_code": 2001,
    "message": "Insufficient credits",
    "hint": "Top up at pangolinfo.com."
  }
}

Response Presentation

Match the user's language. Never dump raw JSON.

  • Product Detail: structured card with title, price, rating, features, rank
  • Keyword Search: numbered list with title, price, rating
  • Bestsellers/New Releases: ranked list emphasizing position
  • Follow Seller / Variant: option comparison table
  • Reviews: summary + top 3-5 reviews + pattern analysis
  • Empty results: suggest checking ASIN spelling, trying another region, broadening search

Exit Codes

CodeMeaning
------
0Success
1API error
2Usage error (bad arguments)
3Network error
4Authentication error

Error Reference

Script Error Codes

CodeMeaningResolution
---------------------------
MISSING_ENVNo credentialsSet env vars
AUTH_FAILEDWrong credentialsVerify email/password
RATE_LIMITToo many requestsWait and retry
NETWORKConnection issueCheck internet
SSL_CERTCertificate errorSee macOS SSL fix
API_ERRORPangolin API errorCheck api_code and hint
PARSE_ERRORInvalid API responseRetry
USAGE_ERRORBad argumentsFix CLI args

Pangolin API Error Codes

CodeMeaningResolution
---------------------------
1004Invalid tokenAuto-retried by script
1009Invalid parser nameCheck --parser value
2001Insufficient creditsTop up at pangolinfo.com
2005No active planSubscribe at pangolinfo.com
2007Account expiredRenew at pangolinfo.com
2009Usage limit reachedWait for next billing cycle
4029Rate limitedReduce request frequency
10000/10001Task failedRetry

First-Time Setup

See references/setup-guide.md for interactive setup instructions.

Quick start:

export PANGOLIN_API_KEY="your-api-key"
python3 scripts/pangolin.py --auth-only

Important Notes for AI Agents

  1. Never dump raw JSON. Parse and present per the Response Presentation guidelines.
  2. Match the user's language.
  3. Be proactive. Highlight best matches, summarize review patterns, flag out-of-stock.
  4. Handle multi-step requests. E.g., "compare US vs JP price" = two queries + comparison table.
  5. Credit awareness. Warn before multi-page reviews (5 credits/page).
  6. ASIN detection. 10-char codes starting with B0 are almost always ASINs -- auto-detect.
  7. Default to amz_us unless context implies another region.
  8. Security. Never expose API keys or passwords.
  9. Use --parser explicitly for category, seller, bestsellers, new releases, follow-seller, variant-asin. Auto-inference only works for ASIN vs keyword.
  10. Combine results. "Find a good mouse under $30 with good reviews" = keyword search + review fetch for top candidates.

Output Schema

See references/output-schema.md for per-parser field documentation.

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-04-16 11:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 218 📥 71,631
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 298 📥 143,061
data-analysis

Stock Analysis

udiedrichsen
利用Yahoo Finance数据深度分析股票和加密货币。支持投资组合管理、关注列表与提醒、股息分析、八维度股票评分、热门趋势扫描(热点扫描器)及谣言/早期信号检测。适用于股票分析、投资组合追踪、财报反应、加密货币监控、热门股票发现及在主流
★ 282 📥 58,297