How drawrowfly/amazon-product-api works
Amazon Buddy is an unofficial Amazon data scraper, exposed as both a Node.js module and a command-line tool. Users request product search, ASIN details, reviews, categories, or marketplace information; the library normalizes options and dispatches scraping work to the scraper, which extracts Amazon data. Results may be returned directly or saved as JSON/CSV. The sampled code shows the entry-point dispatch and scraper’s parsing responsibilities; detailed request, filtering, and file-writing flows are only partially visible, so those relationships are not expanded.
Main entry points: Amazon.js Scraper engine · index.js Scraper API · cli.js CLI commands · constant.js Marketplace data
Components 7
User interfaces
- CLI commands
bin/cli.js - Scraper API
lib/index.js
Scraping and extraction
- Scraper engine
lib/Amazon.js - JSON/CSV output
lib/Amazon.js
Marketplace configuration
- Marketplace data
lib/constant.js
Other components
- User
- Amazon marketplaces
Connections 8
- User → CLI commands: runs commands
README.md - User → Scraper API: calls methods
README.md - CLI commands → Scraper API: dispatches commands
bin/cli.js - Scraper API → Scraper engine: starts scraper
lib/index.js - Scraper API → Marketplace data: selects locale
lib/index.js - Scraper engine → Marketplace data: uses locale data
lib/Amazon.js - Scraper engine → Amazon marketplaces: requests product data
- Scraper engine → JSON/CSV output: saves results
lib/Amazon.js