Skip to content

Instantly share code, notes, and snippets.

@ppazos
Forked from kdabir/rss_read.groovy
Created June 30, 2025 17:33
Show Gist options
  • Save ppazos/bb58e715498ae31d278555af16311aed to your computer and use it in GitHub Desktop.
Save ppazos/bb58e715498ae31d278555af16311aed to your computer and use it in GitHub Desktop.
Parsing rss in groovy
// define the url
def url = "http://news.google.com/news?ned=us&topic=h&output=rss"
def rss = new XmlSlurper().parse(url)
println rss.channel.title
rss.channel.item.each {
println "- ${it.title}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment