-
Notifications
You must be signed in to change notification settings - Fork 0
ItsNiceCraft/licenses
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
import requests from os import path, mkdir if not path.exists("licenses"): mkdir("licenses") res = requests.get("https://api.github.com/licenses") if res.status_code != 200: print("Error receiving licenses") exit(1) for gh_license in res.json(): res_license = requests.get(gh_license["url"]) if res_license.status_code != 200: print(f"Error receiving license {gh_license['key']}") exit(1) with open(f"licenses/{gh_license['key']}.txt", "w") as f: f.write(res_license.json()["body"])
About
⚖️ GitHub license data
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published