Skip to content

Instantly share code, notes, and snippets.

@arindampradhan
Created December 15, 2015 08:15
Show Gist options
  • Save arindampradhan/e7c02d5083581c044b64 to your computer and use it in GitHub Desktop.
Save arindampradhan/e7c02d5083581c044b64 to your computer and use it in GitHub Desktop.
Python | requests
import urllib2
import json
class requests(urllib2.Request):
@classmethod
def json(self,URL=None):
return json.load(urllib2.urlopen(URL))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment