google-play-scraperGoogle Play 应用信息获取
google-play-scraper 是 Node.js scraper,从 Google Play 获取基本应用数据。
安装:
npm install google-play-scraper
获取 app(appid,lang)的示例:
var gplay = require('google-play-scrapper'); gplay.app('com.dxco.pandavszombies') .then(function(app){ console.log('Retrieved application: ' + app.title); }) .catch(function(e){ console.log('There was an error fetching the application!'); });
结果:
{ appId: 'com.dxco.pandavszombies', title: 'Panda vs Zombie: Elvis rage', url: 'https://play.google.com/store/apps/details?id=com.dxco.pandavszombies&hl=en', icon: 'https://lh6.ggpht.com/5mI27oolnooL__S3ns9qAf_6TsFNExMtUAwTKz6prWCxEmVkmZZZwe3lI-ZLbMawEJh3=w300', minInstalls: 10000, maxInstalls: 50000, score: 4.9, reviews: 2312, description: 'Everyone in town has gone zombie.', descriptionHTML: 'Everyone in town has gone <b>zombie</b>.', developer: 'DxCo Games', genre: 'Action', price: '0', free: true, video: 'https://www.youtube.com/embed/PFGj-W8Pe5s'}
评论