amazon-wish-list
v0.5.2
Published
A JavaScript scraper to look up public amazon wish lists by customer or wish list id.
Downloads
19
Maintainers
Readme
Amazon Wish List
A JavaScript scraper to look up public amazon wish lists by customer or wish list id.
Installation
npm install amazon-wish-list --save
Usage
var AmazonWishList = require('amazon-wish-list');
var awl = new AmazonWishList();
awl.getById('NDDVVVWMJ6AN').then(function(list) {
console.log(list);
});
Available methods
The AmazonWishList class provides the following methods:
- getById(listId, filter = 'unpurchased', sort = 'date')
- getByCid(cid, filter = 'unpurchased', sort = 'date')
Valid filter values are:
- unpurchased
- purchased
- all
Valid sort values are:
- date
- price
- price-desc
- title
- priority
Tested and working amazon TLD's
- de
- co.uk
- com
If you use a TLD not mentioned here, please post your findings to the issue section.
Testing
Since this is a scraper and relys on the amazon page not changing, an extensive test suite is provided and may be invoked by running:
npm run test