Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala Parsing RSS/Atom feeds [closed]

Does anyone know a good library/jar to parse RSS/Atom Feeds?

I'd like to stuff a URL in, and want to get the news-items in a homogenous way. (Means: it should not matter whether the Source contains an Atom or RSS feed. I just want "Items" back.)

After browsing on SO, I came up with ROME, but it seems to be chaotic at the moment (no download for example), and is a pure Java solution. Scala would be preferred, but Java is quite okay if nothing Scala-specific exists. Also, it should be a single JAR Library, since I don't use Maven etc.

PS: It's not for Android, just for a good old desktop app.

EDIT: To be more clear, I already know how to get the content from resources as XML. I want to parse them! Autodetect whether it's Atom or some RSS and give me back a uniform list of items.

like image 326
Maximilian Stroh Avatar asked May 09 '12 12:05

Maximilian Stroh


1 Answers

Have you checked out Dispatch? It doesn't have any RSS/Atom features built in per se, but you should be able to handle the response text as a scala.xml.NodeSeq and do whatever you need.

like image 170
Connor Doyle Avatar answered Oct 01 '22 03:10

Connor Doyle