facundoolano / google-play-scraper

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

Not found similar link at some Korean App - region specific issue with "similar" feature #438

Closed miki3475 closed 3 years ago

miki3475 commented 3 years ago

Description:

For some reason when scraping similar apps to some Korean app I get error "not found similar link", however when I change id to some English app or any other "similar" to English it works great.

Example code:

var gplay = require('google-play-scraper');

gplay.similar({appId: 'a.kakao.iconnect.Space.Whale'})
  .then(console.log(), console.log() );

Error message:

Error: not found similar link
    at C:\xampp\htdocs\apps\node\node_modules\google-play-scraper\lib\similar.js:37:17
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

However when AppId is changed to any other, like com.nordvpn.android it works great with results. And that one before exist normally on Play Store: https://play.google.com/store/apps/details?id=a.kakao.iconnect.Space.Whale

However another Korean app works great: https://play.google.com/store/apps/details?id=com.nflygame Not sure where is the issue.

I am getting quite a lot of these errors, for 85 tests got 21 broken, some other broken Ids for testing the issue: a7yaha.com, a333036.ldg, a4l.maxm.droid, aapkibazaar.com, aapankhabariya.com, aadviktech.com.erecharge, a3labgo.tusar.narayanganjtrain, aadhar.bluetree.in.verifyaadhar

Found similar issues already opened, but they were targetting any id within similar query, where this one is region-specific only error.

Thanks. Miko.

miki3475 commented 3 years ago

That was my mistake. The script works great, I just missed the fact some of the apps don't have any similar recommendation, therefore it returns error as it supposed.