Tips and Tricks

From CS 294-1 Spring 2012

Jump to: navigation, search

Catching Stream Data from Twitter

You can use a client like twitter4j from the original source, or this version which I modified to produce XML output instead of JSON.

To use either of those tools you need consumer and API tokens (four in total). These are entered in the "twitter4j.properties" file in the top-level directory of the above zips. This link describes the process of getting them. You only need to follow the 1 step of the directions. The rest is Processing-specific.

The commands printFilterStream.sh and printSampleStream.sh output data to a specified location (edit those files to change it). The printFilterStream.sh script also takes a string argument which is a comma-separated list of keywords to filter for.

BIDMat

BIDMat is a fast matrix library written in Scala that uses Intel MKL libraries for fast matrix math, scientific function evaluation and random number generation.

Personal tools