Added script to check download stats on github
This commit is contained in:
parent
c5b8b7c0a4
commit
e55ba2d24d
8
src/Tools/DownloadStatistics.py
Normal file
8
src/Tools/DownloadStatistics.py
Normal file
|
@ -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")
|
Loading…
Reference in New Issue
Block a user