Listens to the twitter streaming API and filters responses based on keywords.
- Sbt
- Creativity
chmod a+x build
./build
> update
> console
import com.hackeracademy.twitterstreamer
twitterstreamer.StatusStreamer(1000, "yolo")
// would stream results for 1 second that contain
// the phrase yolo
I purposely left out the file src/main/scala/com/hackeracademy/AuthVariables.scala
for the user to fill in their own oauth credentials. For those that are new, should look something like this:
package com.hackeracademy.twitterstreamer
object AuthVariables {
val authConsumerKey: String = "..."
val authConsumerSecret: String = "..."
val authAccessToken: String = "..."
val authAccessTokenSecret: String = "..."
}
Get your credentials from: https://dev.twitter.com/