Skip to content
A library to connect and stream data from the GNIP streaming API
Ruby
Find file
Latest commit 23558da May 26, 2015 @rweald Merge pull request #8 from felipeclopes/hotfix
Fixed: Json parser was not capturing multiple activities in a single chunk
Failed to load latest commit information.
lib
spec
.gitignore
.gitmodules
.pryrc
.rvmrc add rvmrc file to ensure seperate gemset Oct 19, 2011
.travis.yml
Gemfile
LICENSE
README.md
Rakefile Initial commit of base gem created by bundle gem Oct 18, 2011
gnip-stream.gemspec Add license to gemspec Jan 9, 2014

README.md

gnip-stream

Build Status

gnip-stream is a ruby library to connect and stream data from GNIP. It utilizes EventMachine and threads under the hood to provide a true streaming experience without you having to worry about writing non blocking code.

Installation

Installing gnip-stream is easy. Simply add the following line to your


```ruby
gem 'gnip-stream', :git => "https://github.com/rweald/gnip-stream"

Simple Usage

require 'gnip-stream'

#To connect to the special twitter powertrack api
twitter_stream = GnipStream::PowertrackClient.new("http://yourstreamingurl.gnip.com", "someuser", "password")
twitter_stream.consume do |message|
  #process the message however you want
  puts message
end

#To Connect to the Facebook API
facebook_stream = GnipStream::FacebookClient.new("http://yourstreamingurl.gnip.com", "someuser", "password")
facebook_stream.consume do |message|
  puts message
end

Contributors

License

MIT. See LICENSE file for more details.

Special thanks to Sharethrough

Something went wrong with that request. Please try again.