From 82cb4128a9f4c823704ed57cc01806ea77a85223 Mon Sep 17 00:00:00 2001 From: Jan Machacek Date: Sun, 8 Dec 2013 08:59:31 +0000 Subject: [PATCH] Readme and config --- README.md | 4 ++-- src/main/scala/core/tweetstream.scala | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c1c2bcb..66c56f2 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -#Scala Exchange 2013 +#Spray client, Akka and streaming tweets Twitter streaming & simple sentiment analysis application. To build & run the plain-vanilla version of the application, run ``sbt run``. Then you can type in the ``track`` command, which expects the Twitter search term to track. See https://dev.twitter.com/docs/api/1.1/post/statuses/filter for ``track`` filter. ##Twitter application -Before you run the application, create the ``~/.twitter/scalaexchange2013`` file, containing four lines; these lines represent your twitter consumer key and secret, followed by token value and token secret. To generate these values, head over to https://dev.twitter.com/apps/, create an application and add the appropriate lines to this file. An example ``~/.twitter/scalaexchange2013`` is +Before you run the application, create the ``~/.twitter/activator`` file, containing four lines; these lines represent your twitter consumer key and secret, followed by token value and token secret. To generate these values, head over to https://dev.twitter.com/apps/, create an application and add the appropriate lines to this file. An example ``~/.twitter/activator`` is ``` *************TqOdlxA diff --git a/src/main/scala/core/tweetstream.scala b/src/main/scala/core/tweetstream.scala index 8eb2380..3f613c4 100644 --- a/src/main/scala/core/tweetstream.scala +++ b/src/main/scala/core/tweetstream.scala @@ -20,7 +20,7 @@ trait TwitterAuthorization { trait OAuthTwitterAuthorization extends TwitterAuthorization { import OAuth._ val home = System.getProperty("user.home") - val lines = Source.fromFile(s"$home/.twitter/scalaexchange2013").getLines().toList + val lines = Source.fromFile(s"$home/.twitter/activator").getLines().toList val consumer = Consumer(lines(0), lines(1)) val token = Token(lines(2), lines(3))