Question

I'm looking for a simple line or two of code that will grab an rss feed like this php line: $feed = "URL" from within a scala object.

I'm using scala/lift with Netbeans or Eclipse if it's relevant

Was it helpful?

Solution

The simplest you can do is smth like this, if you do not want to bother with exceptions or readability:

val rssFeed = XML.load( (new URL(feedUrl)).openConnection.getInputStream )

OTHER TIPS

The best client API I've used for RSS feed parsing is ROME. It's open source, quite easy to use, and as a Java library, it can be invoked from Scala. I don't know of a pure-Scala library that does this.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top