Created
December 15, 2015 08:15
-
-
Save arindampradhan/e7c02d5083581c044b64 to your computer and use it in GitHub Desktop.
Python | requests
This file contains 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
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