Oct-29-2020, 03:22 AM
Something like:
import requests REPO_NAME = "roundcube/roundcubemail" GITHUB_URL = "https://api.github.com/repos/" latest = requests.get(f"{GITHUB_URL}{REPO_NAME}/releases/latest").json() download_url = [x["browser_download_url"] for x in latest["assets"] if x["name"].endswith("complete.tar.gz")][0] print(f"Download URL is {download_url}")