Skip to content

Instantly share code, notes, and snippets.

@nazt
Created March 16, 2010 14:42
Show Gist options
  • Save nazt/334032 to your computer and use it in GitHub Desktop.
Save nazt/334032 to your computer and use it in GitHub Desktop.
import java.io.UnsupportedEncodingException;
// program to parse RSS Feed
def rssurl = "http://twitter.com/statuses/user_timeline.xml?screen_name=ctis_tu"
def slurp = new XmlSlurper()
def rssObj = slurp.parse(rssurl)
rssObj.status.eachWithIndex { item , num ->
println "-------------------------------------------"
def name = item.user.screen_name.toString()
// def url = item.user.profile_image_url.toString()
println item
// println name
}
http://twitter.com/statuses/user_timeline.json?screen_name=ctis_tu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment