You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an updated example. Considering Ch.9(p220), is a web example using urllib from the Standard Library. Why dont we just changed the url request to something else.
import urlib.request as ur
url = 'http://placekitten.com/'
conn = ur.urlopen(url)
print(conn)
<http.client.HTTPResponse object at 0x105b3f4a8>
My URL was borrowed from the CodeAcademy example here. But @madscheme might want to pick something more permanent.
In the book at p.220, "Fortune Cookie" API doesn't work.
Please check!
http://www.iheartquotes.com/api/v1/random
The text was updated successfully, but these errors were encountered: