ghalambaz/googleplay-spider

基于goutte的另一个GooglePlay网站抓取器

1 2018-12-05 10:17 UTC

This package is auto-updated.

Last update: 2024-09-06 09:26:38 UTC


README

步骤 1 : 使用Composer添加包

composer require ghalambaz/googleplay-spider

步骤 2 : 创建GooglePlaySpider实例

$spider = new GooglePlaySpider();

步骤 3 : 你想要接收的包(应用或游戏)名称

在我们的示例中,包名是 ir.yana.esaj

$package = $spider->getPackageByPackageName("ir.yana.esaj");

步骤 4 : 获取包信息

$spider = new GooglePlaySpider();
$package = $spider->getPackageByPackageName("ir.yana.esaj");

$package->getTitle();
//return : (esaj) ایساج

$package->getFeaturedImageAddress();
//return : address of main (featured) icon image

$res = $package->getDeveloper();
//return : array with two keys [title,link]

$package->getPackageCategory();

$package->isEditorChoice();
//return : true of false that shows is Editor choice or not!

$package->getESRB();
//return : ESRB image link

$package->getScreenshots();
//return : screenshots as array with keys[height,width,link]

$package->getDescription();
//return : full description of app

$package->getWhatsNew();
//return : text about what is new in this version

$package->getRating();
//return : array with keys[rate,total] which total is how many people rate this app

$package->getAdditionalInfo();
//return : information about [Updated Date, Size, Installs, Current Version, Require Android, Content Rating,Offered By ,etc... ]

$package->getSimilar();
//return : array of 6 package information with keys[image,title,link,developer,developer_link,description]