Send Twitter search results to a HipChat room in realtime
Print tweets matching specific search terms to a HipChat room
Designed to run on Heroku for free.
Locally you copy config.sample.yml to config.yml and fill things in.
On Heroku, set the following ENV vars:
And what you actually want to search for:
e.g.
heroku config:add TWITTER_ACCESS_KEY="" TWITTER_SECRET_KEY="" TWITTER_CONSUMER_KEY="" TWITTER_CONSUMER_SECRET=""
heroku config:add HIPCHAT_API_TOKEN="" HIPCHAT_ROOM=""
heroku config:add HIPTWEET_SEARCH="vhx.tv,foobar"
heroku config:add HIPTWEET_USER_IDS="1234583,9876522"
HipChat room can be either name or ID
bundle install
bundle exec rake twitter:stream
Or how it's run on Heroku, to test the Procfile:
gem install heroku
foreman start
heroku create hiptweets-jamiew --stack=cedar
heroku config:add TWITTER_ACCESS_KEY="" TWITTER_SECRET_KEY="" TWITTER_CONSUMER_KEY="" TWITTER_CONSUMER_SECRET=""
heroku config:add HIPCHAT_API_TOKEN="" HIPCHAT_ROOM=""
heroku config:add HIPTWEET_SEARCH="vhx.tv,foobar"
heroku config:add HIPTWEET_USER_IDS="1234583,9876522"
git push heroku master
heroku scale stream=1
You can use heroku logs -t
to watch output
All source code made freely available under an MIT License
Following the contributor-friendly practices of Rubinius and FAT Lab, anyone who submits a patch which is accepted is granted both commit and credit/attribution bits.