华为应用商店评论爬虫
这里以潮汐APP为例,华为应用商店地址:https://appgallery.huawei.com/app/C10763864
1. 分析网页
使用Chrome打开应用商店地址,按F12打开开发工具分析评论请求数据
请求地址与参数:
https://web-drcn.hispace.dbankcloud.cn/uowap/index?method=internal.user.commenList3&serviceType=20&reqPageNum=1&maxResults=25&appid=C10763864&version=10.0.0&zone=&locale=zh
返回数据结构:
{
"devWords": [],
"score": "4.2",
"hotList": [],
"ratingDstList": [{
"rating": 1,
"ratingCounts": 12
}, {
"rating": 2,
"ratingCounts": 5
}, {
"rating": 3,
"ratingCounts": 10
}, {
"rating": 4,
"ratingCounts": 23
}, {
"rating": 5,
"ratingCounts": 90
}],
"totalPages": 9,
"count": 205,
"stars": "4.5",
"list": [{
"accountId": "",
"accountName": "伊*******",
"approveCounts": 0,
"cipherVersion": "",
"commentAppId": "C10763864",
"commentId": "78f27a9e5efe4f97855dfdc613dfd3bf",
"commentInfo": "总体感觉体验还不错吧!就是能不能音乐声音小点?毕竟有些音乐很嘈杂,让人听起来很不舒服,就是专注不起来。",
"commentType": 0,
"id": "78f27a9e5efe4f97855dfdc613dfd3bf",
"isAmazing": 0,
"isModified": 0,
"levelUrl": "",
"logonId": "",
"nickName": "伊*******",
"operTime": "12/30/2021, 17:59",
"phone": "荣耀V40",
"photoUrl": "",
"rating"</