Home>

I want to get the RSS of a blog with Ruby and extract only articles with the word Ruby in the title, but I don't know how.

Each title can be displayed using each, but how can I handle what I did after that?

require "rss"
    url = "https: //blog/index.xml"
    rss = RSS :: Parser.parse (url)
    rss.channel.items.each do | x |
      p x.title
    end