diff --git a/src/Tools/githubstats.py b/src/Tools/githubstats.py new file mode 100755 index 0000000000..694d8c9b0e --- /dev/null +++ b/src/Tools/githubstats.py @@ -0,0 +1,11 @@ +#!/usr/bin/python + +print "Fetching download statistics from github..." + +import requests +r=requests.get('https://api.github.com/repos/FreeCAD/FreeCAD/releases') +myobj = r.json() +for p in myobj: + if "assets" in p: + for asset in p['assets']: + print (asset['name'] + ": " + str(asset['download_count']) + " downloads")