Ne-Lexa / google-play-scraper

PHP scraper to get data from Google Play
MIT License
75 stars 37 forks source link

Info returned by $gplay->getAppInfo($appId) has 'released' => NULL property #8

Closed GrinOleksandr closed 4 years ago

GrinOleksandr commented 4 years ago

example: $gplay->getAppInfo("com.Hawi.SkyDream");

what are the possible reasons for that? does app can have not release date?

GrinOleksandr commented 4 years ago

ahha, I've got it. Looks like results of that response also is related to country

Ne-Lexa commented 4 years ago

For which country and locale does it return null?

$appInfos = $gplay->getAppInfoForAvailableLocales('com.Hawi.SkyDream');
foreach ($appInfos as $locale => $appInfo) {
    echo $locale . ' => ' . $appInfo->getReleased()->format('Y-m-d') . PHP_EOL;
}
// vi => 2020-06-22
// hy_AM => 2020-06-22
// ko_KR => 2020-06-22
GrinOleksandr commented 4 years ago

that results was for country "ua" and locale "en_US" , but now it is not null

GrinOleksandr commented 4 years ago

I came back to work and found more examples, this is only few of them I used the code provided by you in this issue, but except "format" because it throws error when trying to use on null

$appInfos = $gplay->getAppInfoForAvailableLocales('com.nexon.v4gb'); foreach ($appInfos as $locale => $appInfo) { echo $locale . ' => ' . $appInfo->getReleased() . PHP_EOL; }

// en_US => // de_DE => // fr_FR => // hy_AM => // ko_KR => // ru_RU => // th => // zh_CN =>

the same results for: com.blizzard.diablo.immortal com.byaliens.bid.wars.stars.multiplayer.auction.battles com.mojang.minecrafttrialpe

and a lot more However I see that this is a temporary issue, maybe it is related to google play services

Ne-Lexa commented 4 years ago

Release data not provided, which means the release date is null.