Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A library to connect and stream data from the GNIP streaming API

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib Adjusting inactivity timeout to keep-alive signal
spec Updating for Gnip's new API with basic auth
.gitignore Updating for Gnip's new API with basic auth
.gitmodules Adding custom em-http-request as submodule until official one updated
.pryrc automatically require gnip-stream.rb when opening pry session.
.rvmrc add rvmrc file to ensure seperate gemset
.travis.yml add custom travis configuration file.
Gemfile Update to newest em-http-request
LICENSE update copyright in the license file.
gnip-stream.gemspec Add license to gemspec


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.


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

gem 'gnip-stream', :git => ""

Simple Usage

require 'gnip-stream'

#To connect to the special twitter powertrack api
twitter_stream ="", "someuser", "password")
twitter_stream.consume do |message|
  #process the message however you want
  puts message

#To Connect to the Facebook API
facebook_stream ="", "someuser", "password")
facebook_stream.consume do |message|
  puts message



MIT. See LICENSE file for more details.

Special thanks to Sharethrough

Something went wrong with that request. Please try again.