0.02
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
A library to connect and stream data from the GNIP streaming API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0

Runtime

 Project Readme

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 Gemfile:

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