Scala / Raise a question rss feed fetch

I am looking for a simple line or two codes that will capture an rss feed similar to this php string: $ feed = "URL" from a scala object.

I use scala / lift with Netbeans or Eclipse, if relevant

+3
source share
2 answers

The simplest thing you can do is smth like this if you don't want to worry about exceptions or readability:

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

API, RSS-, ROME. , Java, Scala. pure-Scala, .

+2

Source: https://habr.com/ru/post/1711577/


All Articles