Skip to content

Instantly share code, notes, and snippets.

@nazt
Created January 1, 2010 22:09
Show Gist options
  • Save nazt/267280 to your computer and use it in GitHub Desktop.
Save nazt/267280 to your computer and use it in GitHub Desktop.
def text = "Hello from Groovy!"
def page = new XmlSlurper(new SAXParser()).parse('http://kanchanapisek.or.th/kp6/GENERAL/encyclopedia/saranugrom.htm')
def data= page.depthFirst().grep{ it.name() == 'A' && [email protected]().endsWith('.htm') }.'@href'
def Test()
{
data.each{ println it}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment