↧
Answer by Arup Rakshit for Extracting text values from atom feed with Ruby RSS
To get the content of the title your code should be as below :require "rss"feed = RSS::Parser.parse(open("http://casadelkrogh.dk/atom.xml").read)feed.title.to_s# =>...
View ArticleAnswer by humbroll for Extracting text values from atom feed with Ruby RSS
It's not a bug. to_s method is almost inspection of RSS::Atom::Feed::Title. You can use feed.title.content if you want get title without tag.
View ArticleExtracting text values from atom feed with Ruby RSS
I'm trying to use the standard lib ruby RSS::Parser to parse an Atom feed, which sort of works. When I access the extracted fields, such as .title it returns <title>The title</title> rather...
View Article