A Ruby library for consuming Twitter's Streaming API using EventMachine.
TweetStream is a Ruby library built on EventMachine that provides access to Twitter's Streaming API. It allows developers to consume real-time tweets, user streams, and site streams with built-in error handling, reconnection logic, and authentication support. The library simplifies working with Twitter's streaming data by abstracting the underlying connection management.
Ruby developers building applications that require real-time Twitter data, such as social media monitoring tools, analytics dashboards, or bots that react to live events.
Developers choose TweetStream for its straightforward Ruby API, robust error handling, and seamless integration with Twitter's streaming endpoints. It eliminates the complexity of managing persistent connections and reconnection logic, allowing focus on processing stream data.
A simple EventMachine-based library for consuming Twitter's Streaming API.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically manages reconnections and provides callbacks for errors like rate limits and deletions, as detailed in the 'Errors and Reconnecting' section of the README.
Supports public, user, and site streams with easy methods like track and follow, including connection management for site streams per the 'Usage' and 'Using Twitter Site Streams' sections.
Defaults to OAuth authentication with simple configuration, essential for user and site streams as Twitter phases out Basic Auth, noted in the 'Authentication' section.
Includes TweetStream::Daemon for running streams as persistent background processes, ideal for production deployments, shown in the 'Daemonizing' section with ActiveRecord examples.
Built on EventMachine for async processing, which can add deployment complexity and may not be compatible with all Ruby environments or hosting setups, requiring additional setup.
Version 2.0 removed features like the on_interval callback, forcing code updates for existing users, as highlighted in the 'Changes in 2.0' section of the README.
Exclusively ties to Twitter's Streaming API, so for multi-platform social media streaming, developers must integrate additional libraries or tools separately.