FreeCAD / src /Tools /githubstats.py
AbdulElahGwaith's picture
Upload folder using huggingface_hub
985c397 verified
#!/usr/bin/python
# SPDX-License-Identifier: LGPL-2.1-or-later
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"))