Skip to content

Instantly share code, notes, and snippets.

@Cee
Created April 23, 2014 02:39
Show Gist options
  • Save Cee/11201139 to your computer and use it in GitHub Desktop.
Save Cee/11201139 to your computer and use it in GitHub Desktop.
Analyze Json
{
"ASIN": "",
"productInfo": [{
"productDetail": {
"UPC": "",
"bestSellerRank": ["#1 ['cate1','cate2',...]",""],
},
"name": "",
"img": "",
"productDescription": "",
"feature":["",""],
"brand": {"link":"", "name":""},
"timestamp": ""
}],
"seller": [
{"timestamp": Date(),
"seller":[{"name": "", "link": "", "img": ""}, {}]},
{}...],
"category": [
["root", "parent", "child"],
[]...]
"offer": [{"info":[
{"seller":{"link":"","name":"","img":""},
"price":0, #may be str '$1.0'
"timestamp": Date()},{}...],
"timestamp": Date()
},
{}...]
"review": [{
"star": 1,
"helpRate": "3|15",
"publishTime": "",
"summary": "",
"content": "",
"consumer": "",
"profileUrl": ""
},{}...],
"stats_info": {
"keywords": [["word1", 3], #word and word frequency
["word2", 2],...]
"review_count": 1, #number of reviews
"star_info": {1: 1,
2: 0,
3: 0,
4: 0,
5: 0} #distribution of reviews' star
"avg_info": 1 #average star of this commodity
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment