1 | # node-amazon-products
|
2 | > A node.js module to crawl product IDs from Amazon.
|
3 |
|
4 | Amazon Product Advertising API can access pages which are between 1 to 10 only. Using this module you can retrieve pages between 1 to 400 like an Amazon product list page.
|
5 |
|
6 | ## Installation
|
7 | Via [npm](https://npmjs.org):
|
8 |
|
9 | $ npm install amazon-products
|
10 |
|
11 |
|
12 | ## Usage
|
13 |
|
14 | ### Load in the module
|
15 | ```javascript
|
16 | var AmazonProducts = require('amazon-products');
|
17 | ```
|
18 |
|
19 | ### Get product IDs from an product list page url
|
20 | ```javascript
|
21 | AmazonProducts.getProductIds({
|
22 | url: 'PRODUCT_LIST_PAGE_URL'
|
23 | }, function(err, productIds) {
|
24 | ...
|
25 | });
|
26 | ```
|
27 | **INFO**: If the product list page has the next page link then all next pages will be reflected automatically until the next button is not appeared.
|
28 |
|
29 | ## License
|
30 |
|
31 | Released under the MIT License
|
32 |
|
33 | Copyright (c) 2013 Taeho Kim <xissysnd@gmail.com>
|
34 |
|
35 | Permission is hereby granted, free of charge, to any person obtaining a copy
|
36 | of this software and associated documentation files (the "Software"), to deal
|
37 | in the Software without restriction, including without limitation the rights
|
38 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
39 | copies of the Software, and to permit persons to whom the Software is
|
40 | furnished to do so, subject to the following conditions:
|
41 |
|
42 | The above copyright notice and this permission notice shall be included in
|
43 | all copies or substantial portions of the Software.
|
44 |
|
45 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|