Monday, July 29, 2013

Reading API Data

In Python, this is as easy as running a couple of commands in IDLE.

from urllib import urlopen

html = urlopen("") 

HTTPResponse instances also have some more methods and attributes, which can be found here:

This can be additionally simplified by importing and using the json library.

No comments:

Post a Comment