require 'user-stream-receiver' require 'json' UserStreamReceiver.new.run{|chunk| p JSON.parse(chunk) }
or, use your AccessToken.
access_token = OAuth::AccessToken.new(....) UserStreamReceiver.new_from_access_token(access_token).run{|chunk| p JSON.parse(chunk) }
% user-stream-receiver
This command dumps UserStream.
% user-stream-receiver-insert-mongo
This command dumps UserStream and inserts records to MongoDB.
* oauth-cli-twitter * mongo (to run MongoDB example)
gem install user-stream-receiver
Copyright © 2011 hitode909. See LICENSE.txt for further details.