1、爬取价格
http://p.3.cn/prices/mgets?skuIds=J_1397092632,J_&type=1
其中1397092632是商品的id
返回的是个json格式的数据如下:
[{"id":"J_1397092632","p":"36.00","m":"59.00"}]
其中p对应的就是商品价格
2、爬取评论
http://club.jd.com/productpage/p-1397092632-s-0-t-3-p-0.html
其中1397092632是商品的id
返回的是个json格式的数据
{"productAttr":null,"productCommentSummary":{"beginRowNumber":0,"endRowNumber":0,"skuId":1397092632,"productId":1397092632,"score1Count":442,"score2Count":171,"score3Count":331,"score4Count":472,"score5Count":5804,"showCount":892,"commentCount":7220,"averageScore":5,"goodCount":6276,"goodRate":0.87,"goodRateShow":87,"goodRateStyle":131,"generalCount":502,"generalRate":0.069,"generalRateShow":7,"generalRateStyle":10,"poorCount":442,"poorRate":0.061,"poorRateShow":6,"poorRateStyle":9},"hotCommentTagStatistics":[{"id":1090084,"name":"水...
其中有商品数量和评价信息