facundoolano / google-play-scraper

Node.js scraper to get data from Google Play
MIT License
2.35k stars 634 forks source link

Similar is not working #576

Open josepius-clemson opened 2 years ago

josepius-clemson commented 2 years ago

Description:

Similar function is returning the following error:

Example code:

var gplay = require('google-play-scraper');
gplay.similar({appId: 'com.google.android.apps.translate'})
  .then(console.log, console.log);

Error message:

Error: Error requesting Google Play:getaddrinfo ENOTFOUND play.google.comundefined&gl=us&hl=en
    at c:\..\node_modules\google-play-scraper\lib\utils\request.js:41:19
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  status: undefined
}
gianlucascoccia commented 2 years ago

Is this working now? I get this error, no matter which app I try:

Error: Similar link not found
    at parseSimilarApps (/Users/gianlucascoccia/Desktop/store_scraper/node_modules/google-play-scraper/lib/parsers/parseSimilarApps.js:20:11)
    at /Users/gianlucascoccia/Desktop/store_scraper/node_modules/google-play-scraper/lib/similar.js:38:29
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
srikanthlogic commented 2 years ago

Works for me, both in 9.1.1 and in master.