Last active
March 24, 2017 13:53
-
-
Save oxagast/57f9a88fb93b65a5f25bbbc0be9e9479 to your computer and use it in GitHub Desktop.
Get the total number of GitHub release downloads over all time for a project
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
REPO=ansvif; GITUSER=oxagast; curl -s https://api.github.com/repos/$GITUSER/$REPO/releases | grep download_count | sed -e 's/.*: //' -e 's/,/ + /' | tr -d '\n' | sed -e 's/+ $/\n/' | bc | tr -d '\n' ; echo " All time clones of $REPO." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This grabs the total number of downloads of a project from GitHub from the API.