google-play-scraper
google-play-scraper copied to clipboard
review is not working
- Operating System:Window 10
- Node version:14.17.0
- google-play-scraper version:9.1.0
Description:
I run the example code for review,the function is not working
Example code:
var gplay = require('google-play-scraper');
// This example will return 3000 reviews // on a single call gplay.reviews({ appId: 'com.mojang.minecraftpe', sort: gplay.sort.RATING, num: 3000 }).then(console.log, console.log);
// This example will return the first page with 150 reviews paginated // just send an empty nexPaginationToken // you will receive a nextPaginationToken parameter in your response gplay.reviews({ appId: 'com.mojang.minecraftpe', sort: gplay.sort.RATING, paginate: true, nextPaginationToken: null // you can omit this parameter }).then(console.log, console.log);
// This example will return 150 reviews paginated // for the next page (next page is the token return by the previous call) // you will receive a nextPaginationToken parameter in your response gplay.reviews({ appId: 'com.mojang.minecraftpe', sort: gplay.sort.RATING, paginate: true, nextPaginationToken: 'TOKEN_FROM_THE_PREVIOUS_REQUEST' // you can omit this parameter }).then(console.log, console.log);
Error message:
Put error message here
Can you please try with the master
branch that is slightly ahead of 9.1.0? I don't have issues in using master
and can paginate completely till end for reasonably large apps.
Same problem for me
Ok, I found out the solution. For some reason for com.mojang.minecraftpe doesn't work sort: gplay.sort.RATING. So, use another sort or remove this option. Or use another app. I'll open an issue and pr to change readme.
this issue fix by add
lang: 'th' ,country: 'th'
into parameter