Added Tools/githubstats.py script to check download stats from github

This commit is contained in:
Yorik van Havre
2015-09-08 00:18:31 -03:00
parent 98e9dd08ac
commit f1b21bf01d

11
src/Tools/githubstats.py Executable file
View File

@@ -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")