ITP RESIDENTS

The Residents

Resources

Links

ICM Help Session Week 8: Data

Mimi

Today we mostly walked through how to get “live” data from the internet.

Getting Data

Formats

CSV: Comma Separate Files

XML: Extensible Markup Language

JSON: Javascript Object Notation

If you’re wondering about how to get data, try googling, API and JSON or API and XML with the the name of the service you’re interested in.

We focused mostly on JSON…

Processing doesn’t know about the JSON data format. So you’ll need to use Jer Thorpe’s library to parse any JSON you get from the web.

Jer walks through pulling data from the NYT by using the NYT API. At a high-level, here are the main steps:

  1. DONWLOAD JSON LIBRARY: Put the entire “json” folder from the zip file into Processing>>libraries.
  2. Go get yourself an API Key from the NYT. (You’ll need to log in with a NYT account.) The API key is basically a big long string of letters and numbers and it’s how NYT associates the data requests you’re making with you (in case you do something bad ;)
  3. Try running this example.

Resources

Where to get Data