Created
June 6, 2011 10:22
-
-
Save meehow/1010041 to your computer and use it in GitHub Desktop.
jsoncat
This file contains hidden or 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 python | |
import urllib2 | |
import json | |
import sys | |
from pprint import pprint | |
def main(url): | |
return json.load(urllib2.urlopen(url)) | |
if __name__ == '__main__': | |
pprint(main(sys.argv[1])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment