This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
RELEASE_SUFFIX = '_Linux_64-bit' | |
import os | |
stream = os.popen('curl -sL https://api.github.com/repos/kqzz/mcsnipergo/releases') | |
res = stream.read()[:-1] | |
import json | |
obj = json.loads(res) | |
url = "" | |
for asset in obj[0]['assets']: | |
if RELEASE_SUFFIX in asset['name']: |