Created
September 13, 2015 19:09
-
-
Save AndyNovo/575655d4e6c57c995092 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
filename, headers = urllib.request.urlretrieve('http://api.icndb.com/jokes/random') | |
response = open(filename) | |
json = eval(response.read()) | |
print(json['value']['joke']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment