Last active
August 29, 2015 14:14
-
-
Save rupertbates/d7c0d9cb71e3714890ea to your computer and use it in GitHub Desktop.
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
URL="http://content.guardianapis.com/search?api-key=test&show-fields=starRating&page-size=100&tag=tone/albumreview,tone/reviews&from-date=2015-01-03&to-date=2015-02-03" | |
curl -s $URL | jq '[.response.results[]|select(.fields.starRating == "4" or .fields.starRating == "5")] | length' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment