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.
$ cabal install twitter-conduit
For parsing JSON, let's use
$ cabal install yocto
Follow these steps to set up the Twitter credentials and begin coding: