augusl/google-play-scraper
Composer 安装命令:
composer require augusl/google-play-scraper
包简介
Scrapes app data from Google Play store.
README 文档
README
nelexa/google-play-scraper
PHP library to scrape application data from the Google Play store.
- Checking the exists of the app on Google Play.
- Retrieving full app info.
- Retrieving reviews on the app.
- Retrieving a list of app permissions.
- Retrieving a list of similar apps.
- Retrieving a list of categories.
- Retrieving a list of new and the best apps.
- Retrieving a list of apps by the category.
- Retrieving a list of apps by the developer.
- Retrieving info about the developer.
- Retrieving search results.
- Downloading images for the specified size.
Installation
composer require nelexa/google-play-scraper
Documentation
Example
// Retrieving full app info $gplay = new \Nelexa\GPlay\GPlayApps($defaultLocale = 'fr_CA', $defaultCountry = 'ca'); $appInfo = $gplay->getAppInfo('com.google.android.youtube');
Result:
class Nelexa\GPlay\Model\AppInfo { -getId(): string: "com.google.android.youtube" -getLocale(): string: "fr_CA" -getCountry(): string: "ca" -getUrl(): string: "https://play.google.com/store/apps/details?id=com.google.android.youtube" -getFullUrl(): string: "https://play.google.com/store/apps/details?id=com.google.android.youtube&hl=fr_CA&gl=ca" -getName(): string: "YouTube" -getDescription(): string: """ Téléchargez l'application YouTube officielle sur votre téléphone ou tablette Android. Découvrez les contenus regardés partout dans le monde : des clip… """ -getIcon(): Nelexa\GPlay\Model\GoogleImage: { -__toString(): string: "https://play-lh.googleusercontent.com/lMoItBgdPPVDJsNOVtP26EKHePkwBg-PkuY9NOrc-fumRtTFP4XhpUNk_22syN4Datc" -getUrl(): string: "https://play-lh.googleusercontent.com/lMoItBgdPPVDJsNOVtP26EKHePkwBg-PkuY9NOrc-fumRtTFP4XhpUNk_22syN4Datc" -getOriginalSizeUrl(): string: "https://play-lh.googleusercontent.com/lMoItBgdPPVDJsNOVtP26EKHePkwBg-PkuY9NOrc-fumRtTFP4XhpUNk_22syN4Datc=s0" -getBinaryImageContent(): string: … } -getScreenshots(): array: array:5 [ 0 => class Nelexa\GPlay\Model\GoogleImage { -__toString(): string: "https://play-lh.googleusercontent.com/ysXRzV6uIprDW4_cTODTc3RICYKV57YAzNv7zHeAYpwJpe2lC6Wdx-GuCoSgzCCDwuc" -getUrl(): string: "https://play-lh.googleusercontent.com/ysXRzV6uIprDW4_cTODTc3RICYKV57YAzNv7zHeAYpwJpe2lC6Wdx-GuCoSgzCCDwuc" -getOriginalSizeUrl(): string: "https://play-lh.googleusercontent.com/ysXRzV6uIprDW4_cTODTc3RICYKV57YAzNv7zHeAYpwJpe2lC6Wdx-GuCoSgzCCDwuc=s0" -getBinaryImageContent(): string: … } 1 => class Nelexa\GPlay\Model\GoogleImage { -__toString(): string: "https://play-lh.googleusercontent.com/YshbPqiMzsf-UJbTlLhgOXriJw2X_A0HIZ7AX1kfuyk1IkfWjHmTWmYMG0t9pJW3yqU" -getUrl(): string: "https://play-lh.googleusercontent.com/YshbPqiMzsf-UJbTlLhgOXriJw2X_A0HIZ7AX1kfuyk1IkfWjHmTWmYMG0t9pJW3yqU" -getOriginalSizeUrl(): string: "https://play-lh.googleusercontent.com/YshbPqiMzsf-UJbTlLhgOXriJw2X_A0HIZ7AX1kfuyk1IkfWjHmTWmYMG0t9pJW3yqU=s0" -getBinaryImageContent(): string: … } … ] -getScore(): float: 3.8564255 -getPriceText(): ?string: null -isFree(): bool: true -getInstallsText(): string: "10 000 000 000+" -jsonSerialize(): array: … -getDeveloper(): ?Nelexa\GPlay\Model\Developer: { -getId(): string: "5700313618786177705" -getUrl(): string: "https://play.google.com/store/apps/dev?id=5700313618786177705" -getName(): string: "Google LLC" -getDescription(): ?string: null -getWebsite(): ?string: "https://support.google.com/youtube/topic/2422554?rd=1" -getIcon(): ?Nelexa\GPlay\Model\GoogleImage: null -getCover(): ?Nelexa\GPlay\Model\GoogleImage: null -getEmail(): ?string: "ytandroid-support@google.com" -getAddress(): ?string: "1600 Amphitheatre Parkway, Mountain View 94043" -asArray(): array: … -jsonSerialize(): array: … } -getDeveloperName(): string: "Google LLC" -getSummary(): string: "Regardez vos vidéos, chaînes et playlists préférées où que vous soyez." -getTranslatedFromLocale(): mixed: null -getCover(): ?Nelexa\GPlay\Model\GoogleImage: { -__toString(): string: "https://play-lh.googleusercontent.com/vA4tG0v4aasE7oIvRIvTkOYTwom07DfqHdUPr6k7jmrDwy_qA_SonqZkw6KX0OXKAdk" -getUrl(): string: "https://play-lh.googleusercontent.com/vA4tG0v4aasE7oIvRIvTkOYTwom07DfqHdUPr6k7jmrDwy_qA_SonqZkw6KX0OXKAdk" -getOriginalSizeUrl(): string: "https://play-lh.googleusercontent.com/vA4tG0v4aasE7oIvRIvTkOYTwom07DfqHdUPr6k7jmrDwy_qA_SonqZkw6KX0OXKAdk=s0" -getBinaryImageContent(): string: … } -getCategory(): ?Nelexa\GPlay\Model\Category: { -getId(): string: "VIDEO_PLAYERS" -getName(): string: "Lecteurs vidéo et éditeurs" -isGamesCategory(): bool: false -isFamilyCategory(): bool: false -isApplicationCategory(): bool: true -asArray(): array: … -jsonSerialize(): array: … } -getCategoryFamily(): ?Nelexa\GPlay\Model\Category: null -getVideo(): ?Nelexa\GPlay\Model\Video: null -getRecentChanges(): ?string: "Pour plus d'informations sur les nouvelles fonctionnalités et leur utilisation, consultez la documentation et les notifications intégrées au produit." -isEditorsChoice(): bool: false -getInstalls(): int: 11923110578 -getHistogramRating(): Nelexa\GPlay\Model\HistogramRating: { -getFiveStars(): int: 28666549 -getFourStars(): int: 4783408 -getThreeStars(): int: 7638282 -getTwoStars(): int: 14217650 -getOneStar(): int: 83304870 -asArray(): array: … -jsonSerialize(): array: … } -getPrice(): float: 0.0 -getCurrency(): string: "CAD" -isContainsIAP(): bool: false -getOffersIAPCost(): ?string: null -isContainsAds(): bool: true -getSize(): mixed: null -getAppVersion(): ?string: null -getAndroidVersion(): ?string: null -getMinAndroidVersion(): ?string: null -getContentRating(): ?string: "" -getPrivacyPoliceUrl(): ?string: "http://www.google.com/policies/privacy" -getReleased(): ?DateTimeInterface: @1287601948 { date: 2010-10-20T19:12:28+00:00 } -getUpdated(): ?DateTimeInterface: @1654299141 { date: 2022-06-03T23:32:21+00:00 } -getNumberVoters(): int: 138611767 -getNumberReviews(): int: 142747 -getReviews(): array: array:40 [ 0 => class Nelexa\GPlay\Model\Review { -getId(): string: "gp:AOqpTOEMQEAUOLXyd5CBETDY47q0t0LfiCNl0igi4p9DscGE10LQedLKFr6WPPvGFbQ4rTqKu_vR9bf1k2Dl6g" -getUrl(): mixed: "" -getUserName(): string: "Boromir et Tilou" -getText(): string: "Cette application est excellente, cependant il y a quelque problématique niveau pub! Par exemple : il arrive des fois que je regarde une vidéo qui dur…" -getAvatar(): Nelexa\GPlay\Model\GoogleImage: { -__toString(): string: "https://play-lh.googleusercontent.com/a-/AOh14GiEuZYl4opeaRXLTVlEPX09UT7O1pu28Xibw2YO=s64" -getUrl(): string: "https://play-lh.googleusercontent.com/a-/AOh14GiEuZYl4opeaRXLTVlEPX09UT7O1pu28Xibw2YO=s64" -getOriginalSizeUrl(): string: "https://play-lh.googleusercontent.com/a-/AOh14GiEuZYl4opeaRXLTVlEPX09UT7O1pu28Xibw2YO=s0" -getBinaryImageContent(): string: … } -getDate(): ?DateTimeInterface: @1652904683 { date: 2022-05-18T20:11:23+00:00 } -getScore(): int: 4 -getCountLikes(): int: 1929 -getReply(): ?Nelexa\GPlay\Model\ReplyReview: null -getAppVersion(): ?string: "17.19.34" -asArray(): array: … -jsonSerialize(): array: … } 1 => class Nelexa\GPlay\Model\Review { -getId(): string: "gp:AOqpTOEMsRD995sFxjIRu23yRV7za1PH0O2IKHmydCwK9CyQuf4IhL6WNyMsS7ZoEFcdTSI6-akTQAoHGQmzXQ" -getUrl(): mixed: "" -getUserName(): string: "Mathias Blouin" -getText(): string: "Beaucoup trop de publicités, sous-titres qui se mettent tout seul, la résolution n'est JAMAIS sur la plus haute et c'est assez long à changer, des foi…" -getAvatar(): Nelexa\GPlay\Model\GoogleImage: { -__toString(): string: "https://play-lh.googleusercontent.com/a-/AOh14GiIFpEtppYtvFbeki1HKoLOHfLOuDfPFOtuvoBFew=s64" -getUrl(): string: "https://play-lh.googleusercontent.com/a-/AOh14GiIFpEtppYtvFbeki1HKoLOHfLOuDfPFOtuvoBFew=s64" -getOriginalSizeUrl(): string: "https://play-lh.googleusercontent.com/a-/AOh14GiIFpEtppYtvFbeki1HKoLOHfLOuDfPFOtuvoBFew=s0" -getBinaryImageContent(): string: … } -getDate(): ?DateTimeInterface: @1652148284 { date: 2022-05-10T02:04:44+00:00 } -getScore(): int: 3 -getCountLikes(): int: 2569 -getReply(): ?Nelexa\GPlay\Model\ReplyReview: null -getAppVersion(): ?string: "17.17.34" -asArray(): array: … -jsonSerialize(): array: … } … ] -asArray(): array: … }
Changelog
Changes are documented in the releases page.
License
The library is open-sourced software licensed under the MIT License.
Donation
- USDT TRC-20 -
TAR6uqMAMCpTUemy9RP26zrTpJM1rtECxE - USDT ERC-20 -
0xA6c9776996f16A0C473Dec464A5608a7BCD3BB81 - BTC -
16Aavqejcdy2rnyNLLZ1FN4cQEdWXQE3YJ
augusl/google-play-scraper 适用场景与选型建议
augusl/google-play-scraper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 25 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 11 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「google」 「scraper」 「android」 「google play」 「gplay」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 augusl/google-play-scraper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 augusl/google-play-scraper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 augusl/google-play-scraper 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A lightweight, dependency free PHP class that acts as wrapper for Crawlbase API
Firebase cloud messaging http v1 php
Standalone PHP library for easy devices notifications push.
A tool for scraping URL resources (oEmbed, OpenGraph, Twitter cards, JSON-LD)
Scrapes app data from Google Play store.
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-12