This module gathers reviews for the specified app and stores them in a SQLite database (reviews.db
) in the module's root directory. Reviews for each app are collected until we find reviews older than the age specified by daysOfReviews
.
git clone git@github.com:wbio/reviews-collector.git
npm install
All of the configuration takes place in index.js
. There are only 3 properties to configure:
daysOfReviews
(Integer): The number of days worth of reviews to collect (so reviews will be collected until we find a review older than today minusdaysOfReviews
ios
(String[]): An array of app IDs for iOS apps. The app ID can be found in the app's iTunes URL (Google ' iTunes' and you should find it). The app ID is the string of numbers directly after "id" in the URL: https://itunes.apple.com/us/app/google-maps-real-time-navigation/id585027354?mt=8android
(String[]): An array of app IDs for Android apps. The app ID can be found in the app's Google Play URL (Google ' Google Play' and you should find it). The app ID is the string directly after "id=" in the URL: https://play.google.com/store/apps/details?id=com.google.android.apps.maps&hl=en
The object passed to Collector#collect
should look something like:
{
// The # of days worth of reviews to collect
daysOfReviews: 2,
// The list of iOS app IDs to collect reviews for
ios: [
'585027354',
],
// The list of Android app IDs to collect review for
android: [
'com.google.android.apps.maps',
],
}
npm start