0.0
The project is in a healthy, maintained state
rss_feed_plus is a Ruby gem designed to simplify the process of parsing RSS feed in Ruby applications. It provides a straightforward interface for fetching RSS feed from URLs and extracting relevant information such as titles, links, descriptions, publication dates, and authors. With rss_feed_plus, you can quickly integrate RSS feed parsing functionality into your Ruby projects, making it easy to work with syndicated content from various sources.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

rss_feed_plus

Introduction

rss_feed_plus is your go-to Ruby gem for effortlessly fetching and parsing RSS feeds. Whether you're building a news aggregator, content management system, or simply want to integrate RSS feeds into your application, rss_feed_plus simplifies the process, allowing you to easily retrieve and process RSS feed data from various sources.

Features

  • Effortless Parsing: Fetch and parse RSS feeds with ease.
  • Customization: Tailor parsing to fit your needs with customizable XML and URI parsers and timeout duration.
  • Seamless Integration: Integrate with Ruby applications smoothly.

Installation

Getting started with rss_feed_plus is quick and easy. Simply add the gem to your application's Gemfile:

gem 'rss_feed_plus'

Then, install the gem by running:

bundle install

Alternatively, you can install the gem directly using RubyGems:

gem install rss_feed_plus

Usage

Here's a basic example of how to use rss_feed_plus to fetch and parse RSS feeds:

require 'rss_feed'
require 'nokogiri'

# Define your custom options
feed_urls = 'https://www.ruby-lang.org/en/feeds/news.rss'
xml_parser = Nokogiri
uri_parser = URI
timeout = 10

# Initialize the Parser class with custom options
parser = RssFeed::Parser.new(feed_urls, xml_parser: xml_parser, uri_parser: uri_parser, timeout: timeout)
# or 
parser = RssFeed::Parser.new(feed_urls)
# Parse the RSS feeds
parsed_data = parser.parse_as_object 

# OR  Parse the RSS feed as a JSON
parsed_data = parser.parse

# Process the parsed data
puts parsed_data.inspect

Example

Customization

rss_feed_plus allows you to tailor the parsing process to fit your needs. Customize the XML parser, URI parser, and timeout duration according to your requirements.

Contributing

Contributions to rss_feed_plus are welcome! If you encounter any issues, have feature requests, or would like to contribute enhancements, please feel free to open an issue or submit a pull request on GitHub.

Before contributing, please review the Contributing Guidelines and adhere to the Code of Conduct.

Reporting Bugs / Feature Requests

If you encounter any bugs or have suggestions for new features, please open an issue on GitHub. Your feedback is valuable and helps improve the quality of the gem.

License

rss_feed_plus is released under the MIT License. You are free to use, modify, and distribute the gem according to the terms of the license.

Code of Conduct

Please review and adhere to the Code of Conduct when interacting with the rss_feed_plus project. We strive to maintain a welcoming and inclusive community for all contributors and users.


Experience the simplicity of RSS feed integration with rss_feed_plus. Happy coding!