Skip to content

Instantly share code, notes, and snippets.

@meehow
Created June 6, 2011 10:22
Show Gist options
  • Save meehow/1010041 to your computer and use it in GitHub Desktop.
Save meehow/1010041 to your computer and use it in GitHub Desktop.
jsoncat
#!/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