cleitonfco / twitter-stream

Allows to track tweets about events and hashtags in real time.

This URL has Read+Write access

cleitonfco (author)
Fri Oct 09 21:40:56 -0700 2009
commit  1c2e1cad6735e2898a0650cb4ac730b059451ffb
tree    7d3785dc2791b3dddbd5144b5376028a0a40102b
parent  6a9f28ca48cca001a2b5d09524a7312975dbb071
README.markdown

Twitter Stream

DESCRIPTION

Twitter Stream allows to track tweets about events and hashtags in real time. It is a small application powered by ruby with Sinatra framework.

Twitter Stream is not affiliated with Twitter, Inc.

PRE-REQUISITES

Twitter Stream makes use of a handful of ruby gems, it is:

Sinatra

sudo gem install sinatra

HAML

sudo gem install haml

JSON

sudo gem install json

You may want to use the Thin as web server, make sure you have it installed, however, install it:

sudo gem install thin

USAGE

Run init.rb to create database and tables:

ruby init.rb

Change the term variable in file search.rb and run to capture tweets about a keyword or hashtag (term):

ruby search.rb

Execute the thin server (or other) to start application:

thin start -p PORT -R config.ru

Where PORT is the URL number port. to use another environment add the command '-e ENVIRONMENT', where ENVIRONMENT can be :test, :development or :production.

CONTRIBUTERS

LICENSE

Copyright (c) 2009 Cleiton Francisco

Twitter Stream is released under the MIT License. See the LICENSE file for details.