google-play-scraper icon indicating copy to clipboard operation
google-play-scraper copied to clipboard

review is not working

Open kiki88104 opened this issue 2 years ago • 3 comments

  • 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:

image

Put error message here

kiki88104 avatar Aug 21 '22 04:08 kiki88104

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.

srikanthlogic avatar Aug 21 '22 08:08 srikanthlogic

Same problem for me

mnickw avatar Sep 16 '22 14:09 mnickw

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.

mnickw avatar Sep 16 '22 15:09 mnickw

this issue fix by add
lang: 'th' ,country: 'th' into parameter

thabot avatar Apr 19 '23 03:04 thabot