goods-crawling

1.6.9 • Public • Published

goods-crawling Version

爬取amazon/bestbuy/costco/6pm 的商品详情

Setup

$ npm install

Test

  • amazon.com
$ node ./test/amazon.js
  • bestbuy.com
$ node ./test/bestbuy.js
  • 6pm.com
$ node ./test/sixpm.js
  • costco.com
$ node ./test/costco.js
  • function testing
$ node ./test/test.js

Usage

const {fetchGoodsData} = require('goods-crawling');
 
 
let url = 'https://www.amazon.com/Nike-Rosherun-Black-Anthracite-Running/dp/B00BOR6I68/ref=sr_1_2?ie=UTF8&qid=1472541714&sr=8-2&keywords=nike';
 
fetchGoodsData(url, {}, function(err, data){
    if(err){
        console.err("Error:" + err)
        return
    }
    console.log(data)
});
 
 

Readme

Keywords

none

Package Sidebar

Install

npm i goods-crawling

Weekly Downloads

1

Version

1.6.9

License

ISC

Last publish

Collaborators

  • jayinton