Skip to content

Instantly share code, notes, and snippets.

@hvdklauw
Last active September 23, 2016 12:58
Show Gist options
  • Save hvdklauw/f7d1aa567cdc1df2daf79244b3fbe45e to your computer and use it in GitHub Desktop.
Save hvdklauw/f7d1aa567cdc1df2daf79244b3fbe45e to your computer and use it in GitHub Desktop.
Pretty print github issue json.
# curl --header "X-GitHub-OTP: <code>" -u "<username>" https://api.github.com/repos/StriatumVentures/ZUPR/issues\?milestone\=1\&state\=open > issues.json
import json
with open("issues.json") as of:
data = json.load(of)
for issue in data:
t = issue['title']
n = issue['number']
print("{} (#{})".format(t, n))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment