Node.js module to download user reviews from the iTunes Store and the Mac App Store
Node.js module to download user reviews from the iTunes Store and the Mac App Store
⚠️⚠️ This repository is no longer maintained. You may want to use jcoynel/app-store-reviews-swift instead. ⚠️⚠️
Node.js module to download user reviews from the iTunes Store and the Mac App Store.
It supports:
This module uses the public feed to customer reviews
https://itunes.apple.com/rss/customerreviews/page=1/id=555731861/sortby=mostrecent/xml?l=en&cc=us
app-store-reviews is available via the npm packet manager.
$ npm install app-store-reviewsYou can find all the following examples in the examples folder.
In this example we simply print the reviews of Tunes Notifier to the console from the US Store. The ID of the app is 555731861.
var appStoreReviewsModule = require('app-store-reviews');
var appStoreReviews = new appStoreReviewsModule();
appStoreReviews.on('review', function(review) {
console.log(review);
});
appStoreReviews.getReviews('555731861', 'us', 1);[ id: '676984080',
app: '555731861',
author: 'appwatching',
version: '1.1',
rate: '5',
title: 'Very good',
comment: 'Mucho mejor ahora. Ya se puede esconder el icono de la barra de menús.',
vote: '0',
updated: '2012-10-19T12:48:41-07:00',
country: 'us' ]In this example we store the reviews in a MySQL database.
You can find the structure of the database in examples/reviews-to-mysql.sql
…In this example we store the reviews in a MySQL database and send the new reviews by email periodically using Cron.
You can find the structure of the database in examples/reviews-to-mysql.sql.
In a directory, copy the following files
Install the required Node.js modules
$ npm install app-store-reviews
$ npm install mysql
$ npm install nodemailerIn reviews-to-mysql.js, configure your database connection details.
In mysql-to-email.js, configure your database connection details and email address and password.
In reviews-to-email.sh, set the path to the directory containing this file.
Make reviews-to-email.sh executable: chmod +x reviews-to-email.sh
Add reviews-to-email.sh to Cron
Edit the current crontab: $ crontab -e
Add the following line (run every day at 12): 0 12 * * * /EXAMPLE/PATH/reviews-to-email.sh
No open issues yet, or sync has not completed.