Skip to content

luugiathuy/amazon-list-scraper

Repository files navigation

Amazon List Scraper

Build Status Coverage Status

Scrape items from a public Amazon's list

Install

$ npm install --save amazon-list-scraper

Usage

const AmazonListScraper = require('amazon-list-scraper').default;

const scraper = new AmazonListScraper();
scraper.scrape('https://www.amazon.com/gp/registry/wishlist/1JMCNHNT959X2')
  .then(items => {
    console.log(items);
    //  [
    //    { 
    //      title: 'The Principles of Object-Oriented JavaScript',
    //      price: 9.99,
    //      link: 'https://www.amazon.com/dp/B00I87B1H8/ref=wl_it_dp_v_nS_ttl/184-4221310-4664445?_encoding=UTF8&colid=1JMCNHNT959X2&coliid=I2ETH645CXBEGM'
    //    },
    //    { 
    //      title: 'Clean Code: A Handbook of Agile Software Craftsmanship',
    //      price: 38.6,
    //      link: 'https://www.amazon.com/dp/0132350882/ref=wl_it_dp_v_nS_ttl/184-4221310-4664445?_encoding=UTF8&colid=1JMCNHNT959X2&coliid=IDGP10KBLGRPV'
    //    } 
    //  ]
  })
  .catch(error => {
  });

API

License

MIT © Luu Gia Thuy

About

Scrape items from a public Amazon's list

Resources

License

Stars

Watchers

Forks

Packages

No packages published