June 2014
Beginner to intermediate
334 pages
6h 8m
English
Twitter is flooded with content that arrives every second. A great way to start investigating real-time data is by examining tweets.
This recipe will show how to write code that reacts to tweets relating to a specific search query. We use an external web-endpoint to determine whether the sentiment is positive, neutral, or negative.
Install the twitter-conduit package:
$ cabal install twitter-conduit
For parsing JSON, let's use yocto:
$ cabal install yocto
Follow these steps to set up the Twitter credentials and begin coding: