Created
January 1, 2010 22:09
-
-
Save nazt/267280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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