Skip to content

Instantly share code, notes, and snippets.

@teocomi
Created July 25, 2020 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teocomi/b7da846579a5fad296e9bd3bd7bb5411 to your computer and use it in GitHub Desktop.
Save teocomi/b7da846579a5fad296e9bd3bd7bb5411 to your computer and use it in GitHub Desktop.
#gets the total download count of releases in a github repo
#adapted from: https://www.artificialworlds.net/blog/2015/10/16/finding-the-download-count-of-github-releases/
#might stop working if the releases are too many :/
curl -s https://api.github.com/repos/speckleworks/speckleinstaller/releases?per_page=100 | egrep 'download_count' | cut '-d:' -f 2 | sed 's/,/+/g' | xargs echo | sed 's/ //g' | xargs echo | xargs -I N echo N 0 | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment