Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.17 KB

README.md

File metadata and controls

35 lines (29 loc) · 1.17 KB

Amazon Product Data Scraper

A simplified Amazon data scraper model. Made with Puppeteer.

Installation

To use this module in your project, run:

# using npm
npm i amazon-product-data-fetcher
# or using yarn
yarn add amazon-product-data-fetcher
# or using pnpm
pnpm i amazon-product-data-fetcher

Usage

import AmazonScraperManager from 'amazon-product-data-fetcher';

const AmazonProductScraper = new AmazonScraperManager({
    amazonRegion: 'co.uk', // You can enter Amazon domain extensions ex: co.uk, ca, mx, com.tr | default: com
    asins: ['B0BC9TWWBH', 'B0BWDKJ2XR', 'B0BTHM4JDN', 'B0CH7CQGPK', 'B0CJPNKZRZ', 'B095X7RV77', ...], // Asin list
    workerCount: 6, // How many asins to scraping at the same time. default: 1
    useMonitor: true, // Monitor showing instant status. default: false
    ocrKey: 'K**1**47*8*89*7' // This is using for Amazon Captcha, You can get from https://ocr.space/ocrapi
});

(async () => {
    await AmazonScraperManager.scrape();
    AmazonScraperManager.exportProductData('amazon-product-data.json');
    const data = AmazonScraperManager.getProductData();
    console.log(data);
})();