Created
August 21, 2011 18:28
-
-
Save ramn/1160957 to your computer and use it in GitHub Desktop.
Print rss feed (Scala)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val feed = xml.XML.load(new java.net.URL("http://feeds.delicious.com/v2/rss/some_user/some_tag")) | |
for (item <- feed \\ "item") { | |
println(item \\ "title" text) | |
println(item \\ "link" text) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment