From 8a7768a04adf9805b2334380bc81dae75a4f2d6c Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 5 Jan 2016 12:24:57 -0200 Subject: [PATCH] Added script to check download stats on github --- src/Tools/DownloadStatistics.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/Tools/DownloadStatistics.py diff --git a/src/Tools/DownloadStatistics.py b/src/Tools/DownloadStatistics.py new file mode 100644 index 0000000000..86dee09096 --- /dev/null +++ b/src/Tools/DownloadStatistics.py @@ -0,0 +1,8 @@ +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")