This is a Ruby application that allows you to read and interact with RSS feeds. It uses the Nokogiri and tty-markdown gems to parse RSS feeds and display them in a user-friendly format. You can select a specific RSS feed item to view its contents in detail.
- Retrieve and parse RSS feeds from a specified URL.
- Display a list of RSS feed items in a table format with consistent padding.
- Choose a specific RSS feed item to view its contents.
- Display keys in bold when viewing a single article.
- Optionally read another item or close the application after viewing a single article.
- Ruby 2.6 or later
- rss_feed_plus
-
Clone this repository:
git clone https://github.com/talaatmagdyx/rss-cli-example.git cd rss-cli-example -
Install the required Ruby gems:
bundle install
- Run the application and provide the URL of the RSS feed as an argument:
./rss_reader.rb -u <rss-feed-url>- Replace
<rss-feed-url>with the URL of the RSS feed you want to read.
-
The application will display a list of RSS feed items in a table format. Choose an item by entering its corresponding number.
-
The application will display the contents of the chosen RSS feed item. The keys will be displayed in bold.
-
After viewing a single article, the application will prompt you to read another item or close the application.
-
Example command to run the application with an RSS feed URL:
./rss_reader.rb -u https://www.ruby-lang.org/en/feeds/news.rss
This project is licensed under the MIT License. See the MIT License file for details.
Contributions are welcome! Please feel free to open an issue or submit a pull request.
