Last active
April 3, 2016 19:26
-
-
Save jhurliman/2c9d957980e40753283c57f37fd12307 to your computer and use it in GitHub Desktop.
Return the average review score based on recent reviews for an app store app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
COUNTRY=us | |
APPID=1081557588 | |
curl -s "https://itunes.apple.com/${COUNTRY}/rss/customerreviews/id=${APPID}/sortBy=mostRecent/json" |\ | |
jq '[.feed.entry[]."im:rating".label // empty | tonumber] | add/length' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment