1.0.0 • Published 4 years ago

amazon-scraper-wintr v1.0.0

Weekly downloads
3
License
GNU GENERAL PUBLI...
Repository
github
Last release
4 years ago

Amazon product scraper powered by WINTR API

Extract product data from Amazon search and product URLs

Get started

Installation

$ npm install amazon-scraper-wintr

Scrape products

const Amazon = require('amazon-scraper-wintr')
const scraper = new Amazon('YOUR_WINTR_API_KEY')

scraper.getProducts('AMAZON_SEARCH_URL') // Example: https://www.amazon.com/s?k=phone
.then((data) => {
  console.log(data)
})
.catch((err) => {
  console.error(err)
})

Scrape product details

const Amazon = require('amazon-scraper-wintr')
const scraper = new Amazon('YOUR_WINTR_API_KEY')

scraper.getProductDetails('AMAZON_PRODUCT_URL') // Example: https://www.amazon.com/dp/B07ZDJCL76
.then((data) => {
  console.log(data)
})
.catch((err) => {
  console.error(err)
})