Skip to content

Kiosk12/tweets-sentiment-analysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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/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
****************************Fv9b1ELexCRhI
********-*************************GUjmnWQvZ5GwnBR2
***********************************ybgUNqrZwD

Naturally, the you will need to replace the *s with the values in your consumer token and secret; and token value and secret.

##Running Run the application

$ sbt 
> project web
> run

then connect your Websocket client to ws://localhost:9000/track/<keyword>

About

AngularJS and Play/Scala/Spray Tweets stream Analyser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 45.9%
  • Scala 37.0%
  • JavaScript 11.9%
  • CSS 3.2%
  • ApacheConf 1.2%
  • XML 0.8%