在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:facundoolano/google-play-scraper开源软件地址:https://github.com/facundoolano/google-play-scraper开源编程语言:JavaScript 100.0%开源软件介绍:google-play-scraperNode.js module to scrape application data from the Google Play store. Related projects
Installation
UsageAvailable methods:
appRetrieves the full detail of an application. Options:
Example: var gplay = require('google-play-scraper');
gplay.app({appId: 'com.google.android.apps.translate'})
.then(console.log, console.log); Results: {
title: 'Google Translate',
description: 'Translate between 103 languages by typing\r\n...' ,
descriptionHTML: 'Translate between 103 languages by typing<br>...',
summary: 'The world is closer than ever with over 100 languages',
installs: '500,000,000+',
minInstalls: 500000000,
maxInstalls: 898626813,
score: 4.482483,
scoreText: '4.5',
ratings: 6811669,
reviews: 1614618,
histogram: { '1': 370042, '2': 145558, '3': 375720, '4': 856865, '5': 5063481 },
price: 0,
free: true,
currency: 'USD',
priceText: 'Free',
offersIAP: false,
IAPRange: undefined,
size: 'Varies with device',
androidVersion: 'VARY',
androidVersionText: 'Varies with device',
developer: 'Google LLC',
developerId: '5700313618786177705',
developerEmail: '[email protected]',
developerWebsite: 'http://support.google.com/translate',
developerAddress: '1600 Amphitheatre Parkway, Mountain View 94043',
privacyPolicy: 'http://www.google.com/policies/privacy/',
developerInternalID: '5700313618786177705',
genre: 'Tools',
genreId: 'TOOLS',
familyGenre: undefined,
familyGenreId: undefined,
icon: 'https://lh3.googleusercontent.com/ZrNeuKthBirZN7rrXPN1JmUbaG8ICy3kZSHt-WgSnREsJzo2txzCzjIoChlevMIQEA',
headerImage: 'https://lh3.googleusercontent.com/e4Sfy0cOmqpike76V6N6n-tDVbtbmt6MxbnbkKBZ_7hPHZRfsCeZhMBZK8eFDoDa1Vf-',
screenshots: [
'https://lh3.googleusercontent.com/dar060xShkqnJjWC2j_EazWBpLo28X4IUWCYXZgS2iXes7W99LkpnrvIak6vz88xFQ',
'https://lh3.googleusercontent.com/VnzidUTSWK_yhpNK0uqTSfpVgow5CsZOnBdN3hIpTxODdlZg1VH1K4fEiCrdUQEZCV0',
],
video: undefined,
videoImage: undefined,
contentRating: 'Everyone',
contentRatingDescription: undefined,
adSupported: false,
released: undefined,
updated: 1576868577000,
version: 'Varies with device',
recentChanges: 'Improved offline translations with upgraded language downloads',
comments: [],
editorsChoice: true,
features: [
{
title: 'Uses Google Play Games',
description: 'For automatic sign-in, leaderboards, achievements, and more.'
},
{
title: 'Achievements',
description: 'Grants you achievements for completing goals and skill-based challenges.'
}
],
appId: 'com.google.android.apps.translate',
url: 'https://play.google.com/store/apps/details?id=com.google.android.apps.translate&hl=en&gl=us'
} listRetrieve a list of applications from one of the collections at Google Play. Options:
Example: var gplay = require('google-play-scraper');
gplay.list({
category: gplay.category.GAME_ACTION,
collection: gplay.collection.TOP_FREE,
num: 2
})
.then(console.log, console.log); Results: [ { url: 'https://play.google.com/store/apps/details?id=com.playappking.busrush',
appId: 'com.playappking.busrush',
summary: 'Bus Rush is an amazing running game for Android! Start running now!',
developer: 'Play App King',
developerId: '6375024885749937863',
title: 'Bus Rush',
icon: 'https://lh3.googleusercontent.com/R6hmyJ6ls6wskk5hHFoW02yEyJpSG36il4JBkVf-Aojb1q4ZJ9nrGsx6lwsRtnTqfA=w340',
score: 3.9,
scoreText: '3.9',
priceText: 'Free',
free: false },
{ url: 'https://play.google.com/store/apps/details?id=com.yodo1.crossyroad',
appId: 'com.yodo1.crossyroad',
title: 'Crossy Road',
summary: 'Embark on an action arcade, endless runner journey!',
developer: 'Yodo1 Games',
developerId: 'Yodo1+Games',
icon: 'https://lh3.googleusercontent.com/doHqbSPNekdR694M-4rAu9P2B3V6ivff76fqItheZGJiN4NBw6TrxhIxCEpqgO3jKVg=w340',
score: 4.5,
scoreText: '4.5',
priceText: 'Free',
free: false } ] searchRetrieves a list of apps that results of searching by the given term. Options:
Example: var gplay = require('google-play-scraper');
gplay.search({
term: "panda",
num: 2
}).then(console.log, console.log); Results: [ { url: 'https://play.google.com/store/apps/details?id=com.snailgameusa.tp',
appId: 'com.snailgameusa.tp',
summary: 'An exciting action adventure RPG of Panda proportions!',
title: 'Taichi Panda',
developer: 'Snail Games USA',
developerId: 'Snail+Games+USA+Inc',
icon: 'https://lh3.googleusercontent.com/g8RMjpRk9yetsui4g5lxnioAFwtgoKUJDBnb2knJMrOaLOtHrwU1qYkb-PadbL0Zmg=w340',
score: 4.1,
scoreText: '4.1',
priceText: 'Free',
free: true },
{ url: 'https://play.google.com/store/apps/details?id=com.sgn.pandapop.gp',
appId: 'com.sgn.pandapop.gp',
summary: 'Plan your every pop to rescue baby pandas from the evil Baboon!',
title: 'Panda Pop',
developer: 'SGN',
developerId: '5509190841173705883',
icon: 'https://lh5.ggpht.com/uAAUBzEHtD_-mTxomL2wFxb5VSdtNllk9M4wjVdTGMD8pH79RtWGYQYrrtfVTjq7PV7M=w340',
score: 4.2,
scoreText: '4.2',
priceText: 'Free',
free: true } ] developerReturns the list of applications by the given developer name. Options:
Example: var gplay = require('google-play-scraper');
gplay.developer({devId: "DxCo Games"}).then(console.log); Results: [ { url: 'https://play.google.com/store/apps/details?id=com.dxco.pandavszombies2',
appId: 'com.dxco.pandavszombies2',
title: 'Panda vs Zombie 2 Panda\'s back',
summary: 'Help Rocky the Panda warrior to fight zombies again!',
developer: 'DxCo Games',
developerId: 'DxCo+Games',
icon: 'https://lh3.googleusercontent.com/kFco0LtC7ICP0QrtpkF-QQahU-iwuDgEsH0AClQcHwtzsO5-8BGTf8QgR6dlCLxqBLc=w340',
score: 3.9,
scoreText: '3.9',
priceText: 'Free',
free: true },
{ url: 'https://play.google.com/store/apps/details?id=com.dxco.pandavszombies',
appId: 'com.dxco.pandavszombies',
title: 'Panda vs Zombie: panda ftw',
summary: 'Help Rocky the Panda warrior to fight zombie games and save the Panda kind.',
developer: 'DxCo Games',
developerId: 'DxCo+Games',
icon: 'https://lh6.ggpht.com/5mI27oolnooL__S3ns9qAf_6TsFNExMtUAwTKz6prWCxEmVkmZZZwe3lI-ZLbMawEJh3=w340',
score: 4.5,
scoreText: '4.5',
priceText: 'Free',
free: true } ] suggestGiven a string returns up to five suggestion to complete a search query term. Options:
Example: var gplay = require('google-play-scraper');
gplay.suggest({term: 'panda'}).then(console.log); Results: [ 'panda pop',
'panda',
'panda games',
'panda run',
'panda pop for free' ] reviewsRetrieves a page of reviews for a specific application. Note that this method returns reviews in a specific language (english by default), so you need to try different languages to get more reviews. Also, the counter displayed in the Google Play page refers to the total number of 1-5 stars ratings the application has, not the written reviews count. So if the app has 100k ratings, don't expect to get 100k reviews by using this method. You can get all reviews at once, by sending the You`ll have to choose wich method is better for your use case. By setting Options:
Example: var gplay = require('google-play-scraper');
// This example will return 3000 reviews
// on a single call
gplay.reviews({
appId: 'com.mojang.minecraftpe',
sort: gplay.sort.RATING,
num: 3000
}).then(console.log, console.log);
// This example will return the first page with 150 reviews paginated
// just send an empty nexPaginationToken
// you will receive a nextPaginationToken parameter in your response
gplay.reviews({
appId: 'com.mojang.minecraftpe',
sort: gplay.sort.RATING,
paginate: true,
nextPaginationToken: null // you can omit this parameter
}).then(console.log, console.log);
// This example will return 150 reviews paginated
// for the next page (next page is the token return by the previous call)
// you will receive a nextPaginationToken parameter in your response
gplay.reviews({
appId: 'com.mojang.minecraftpe',
sort: gplay.sort.RATING,
paginate: true,
nextPaginationToken: 'TOKEN_FROM_THE_PREVIOUS_REQUEST' // you can omit this parameter
}).then(console.log, console.log); Results: {
data: [
{
id: 'gp:AOqpTOFmAVORqfWGcaqfF39ftwFjGkjecjvjXnC3g_uL0NtVGlrrqm8X2XUWx0WydH3C9afZlPUizYVZAfARLuk',
userName: 'Inga El-Ansary',
userImage: 'https://lh3.googleusercontent.com/-hBGvzn3XlhQ/AAAAAAAAAAI/AAAAAAAAOw0/L4GY9KrQ-DU/w96-c-h96/photo.jpg',
date: '2013-11-10T18:31:42.174Z',
score: 5,
scoreText: '5',
url: 'https://play.google.com/store/apps/details?id=com.dxco.pandavszombies&reviewId=Z3A6QU9xcFRPRWZaVHVZZ081NlNsRW9TV0hJeklGSTBvYTBTUlFQUUJIZThBSGJDX2s1Y1o0ZXRCbUtLZmgzTE1PMUttRmpRSS1YcFgxRmx1ZXNtVzlVS0Zz'
title: 'I LOVE IT',
text: 'It has skins and snowballs everything I wanted its so cool I love it!!!!!!!!',
replyDate: '2013-11-10T18:31:42.174Z',
replyText: 'thanks for playing Panda vs Zombies!',
version: '1.0.2',
thumbsUp: 29,
criterias: [
{
criteria: 'vaf_games_simple',
rating: 1
},
{
criteria: 'vaf_games_realistic',
rating: 1
},
{
criteria: 'vaf_games_complex',
rating: 1
}
]
},
{
id: 'gp:AOqpTOF39mpW-6gurlkCCTV_8qnKne7O5wcFsLc6iGVot5hHpplqPCqIiVL2fjximXNujuMjwQ4pkizxGrn13x0',
userName: 'Millie Hawthorne',
userImage: 'https://lh5.googleusercontent.com/-Q_FTAEBH2Qg/AAAAAAAAAAI/AAAAAAAAAZk/W5dTdaHCUE4/w96-c-h96/photo.jpg',
date: '2013-11-10T18:31:42.174Z',
url: 'https://play.google.com/store/apps/details?id=com.dxco.pandavszombies&reviewId=Z3A6QU9xcFRPRmFHdlBFS2pGS2JVYW5Dd3kxTm1qUzRxQlYyc3Z4ZE9CYXRuc0hkclV3a09hbEFkOVdoWmw3eFN5VjF4cDJPLTg5TW5ZUjl1Zm9HOWc5NGtr',
score: 5,
scoreText: '5',
title: 'CAN NEVER WAIT TILL NEW UPDATE',
text: 'Love it but needs to pay more attention to pocket edition',
replyDate: null,
replyText: null,
version: null,
thumbsUp: 29
criterias: []
}
],
nextPaginationToken: 'NEXT_PAGINATION_TOKEN'
} similarReturns a list of similar apps to the one specified. Options:
Example: var gplay = require('google-play-scraper');
gplay.similar({appId: "com.dxco.pandavszombies"}).then(console.log); Results: [ { url: 'https://play.google.com/store/apps/details?id=com.creative.rambo',
appId: 'com.creative.rambo',
summary: 'Rambo - The Mobile Game',
developer: 'Creative Distribution Ltd',
developerId: '8812103738509382093',
icon: '//lh3.googleusercontent.com/QDRAv7v4LSCfZgz3GIbOSz8Zj8rWqeeYuqqYiqyQXkxRJwG7vvUltzsFaWK5D7-JMnIZ=w340',
score: 3.3,
scoreText: '3.3',
priceText: '$2.16',
free: false } ] permissionsReturns the list of permissions an app has access to.
Example: var gplay = require('google-play-scraper');
gplay.permissions({appId: "com.dxco.pandavszombies"}).then(console.log); Results: [ { permission: 'modify or delete the contents of your USB storage',
type: 'Storage' },
{ permission: 'read the contents of your USB storage',
type: 'Storage' },
{ permission: 'full network access',
type: 'Photos/Media/Files' },
{ permission: 'view network connections',
type: '' } ] |