The moose likes Groovy and the fly likes Groovy class for HTML Scrapping Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Other Languages » Groovy
Reply Bookmark "Groovy class for HTML Scrapping" Watch "Groovy class for HTML Scrapping" New topic
Author

Groovy class for HTML Scrapping

Deepak Mittal
Greenhorn

Joined: Dec 18, 2007
Posts: 8
I am working on a hobby project for scrapping some data from some sites. I am wondering if there are any special classes in Groovy for HTML scrapping?

Regards,

-Deepak
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
Well, Scott put a great piece of code in a previous post, and here it is:

This piece of code invokes the URL (which is a web service), and gets the XML response and puts it in the string variable called "xml". Doing this with normal URLs that return HTML would be the same.


Visit my blog: http://jnassef.blogspot.com/
 
 
subject: Groovy class for HTML Scrapping
 
MyEclipse, The Clear Choice