Created
August 23, 2016 14:11
-
-
Save mosampaio/9b39880d5cf623e231e27d57077ae536 to your computer and use it in GitHub Desktop.
How to consume a json Rest API with Python using urllib
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 urllib.request | |
url = 'https://api.github.com/repos/twilio/twilio-python/contributors' | |
response = urllib.request.urlopen(url).read() | |
print(response) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment