* [ Tools ]: Update SPDX License Identifiers * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
14 lines
386 B
Python
Executable File
14 lines
386 B
Python
Executable File
#!/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"))
|