scrap-the-price

1.0.4 • Public • Published

scrap-the-price

This package is useful in scraping the price of a product in amazon.in, walmart and target. this works only if you provide the url of the product page.

Example Usage


const scraptheprice = require('scrap-the-price')

const priceData = await scraptheprice.scrapPrice({ url: 'product-url'}) //or scraptheprice.scrapPrice({url: 'product-url'}) .then(function(pricedata){ console.log(pricedata) }) .catch(function(err){ console.log(err) })

// output

// { productPrice: '$25', message: 'scraping succesfull.'}

// or

// { productPrice: "", message: 'unable to find price, please try once again.'}

// or

// { error: "", message: 'unexpected error.'}

Package Sidebar

Install

npm i scrap-the-price

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

4.65 kB

Total Files

4

Last publish

Collaborators

  • sharathchandraacha