human
Save JSON outputed from a URL to a file
assistant
Here is some code to save json output from a url ‘http://search.twitter.com/search.json?q=hi’ to file ‘hi.json’ in Python 2

urllib.request.urlretrieve('http://search.twitter.com/search.json?q=hi', 'hi.json')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.