1.0.5 • Published 4 years ago

simple-amazon-scraper v1.0.5

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

Simple Amazon Scraper

A node package that allows you to scrape the name and price of a URL from Amazon.

  • Currently only supports US urls.

Installation

npm install simple-amazon-scraper

Usage

Using .then()

const amazon = require('simple-amazon-scraper');

amazon('ProductURL')
.then(product => console.log(product));
// Result:
// {
//   price: '$amount',
//   name: 'some long item name'
// }

Using async/await

const amazon = require('simple-amazon-scraper');
(async() => {
    const product = await amazon('ProductURL')
    console.log(product);
})();
// Result:
// {
//   price: '$amount',
//   name: 'some long item name'
// }
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago