Skip to content

Instantly share code, notes, and snippets.

@ramn
Created August 21, 2011 18:28
Show Gist options
  • Save ramn/1160957 to your computer and use it in GitHub Desktop.
Save ramn/1160957 to your computer and use it in GitHub Desktop.
Print rss feed (Scala)
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