Skip to content

Home

Development

IDEs

JAR services

API Explorer

RssFunctions

The Rss class contains functions for fetching RSS feeds, available for use in both Gloop and Groovy. Below are some examples on how these functions may be used:

Sample service showing how to use the `Rss` functions

1
2
3
4
5
6
7
// Retrieve RSS entries
def cnnRssFeeds = 'http://rss.cnn.com/rss/edition.rss'.rss().getEntries()

// Iterate through all the retrieved RSS entries, printing their titles
for (def feed : cnnRssFeeds) {
    println feed.getTitle()
}