A Ruby library for parsing RSS, Atom, and JSON feeds with flexible configuration and extensible parsers.
Feedjira is a Ruby library for parsing RSS, Atom, and JSON feeds. It provides a simple API to extract feed data like entries, titles, and metadata, solving the problem of handling diverse feed formats in Ruby applications. It is widely used in feed readers, content aggregators, and tools that consume web syndication content.
Ruby developers building applications that consume web feeds, such as RSS readers, news aggregators, content importers, or automation tools that process syndicated content.
Developers choose Feedjira for its clean, extensible API and robust support for multiple feed formats. Its flexibility in adding custom parsers and attributes makes it adaptable to specialized use cases, while its active community and integration in popular projects ensure reliability.
A feed parsing library
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Feedjira provides a consistent API for parsing RSS, Atom, and JSON feeds, as demonstrated in the README where `Feedjira.parse(xml)` works seamlessly across formats without manual detection.
Developers can add custom parsers and attributes, exemplified by the ability to modify classes like `Feedjira::Parser::RSSEntry` to include elements such as 'georss:elevation', adapting to specialized feed structures.
The library allows fine-tuning through configuration options like parser order and whitespace stripping, enabling optimization for specific feed quirks, as detailed in the Configuration section.
Feedjira is trusted by established projects like Feedbin and Stringer, listed in the README, indicating reliability and active community adoption for real-world applications.
Feedjira solely handles parsing, requiring developers to integrate external HTTP clients (e.g., HTTParty) to fetch feed data, which adds boilerplate code and dependency management overhead.
Adding custom parsers or attributes demands understanding of Feedjira's class hierarchy and configuration, as shown in examples where modifying entry classes can be non-trivial for newcomers.
The library lacks features like feed discovery, subscription management, or caching, forcing developers to build additional components for full-fledged feed reader applications.