This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
The Sun Socket Tutorial (see Google) has a nifty example of downloading a web page via URL and HttpURLConnection. Once you have that, you'd probably be best off with a real HTML parser. My favorite is no longer available for download, but Google will again help you out. The one in the library editor toolkit is probably good enough for jazz.
Let us know how you do with this!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I like to use jWebUnit for this. Although it's meant for testing web applications, it's quite easy to use for downloading web pages. It then presents the web page in a cleaned-up DOM-like way, which can be used to access various parts of the page.
Assuming you're addressing me (and not Stan), that would be of little use. The code depends much on the structure of the HTML page. But the jWebUnit site has a number of introductory examples; those should get you going. Plus, you'll learn a lot more by doing it yourself instead of using someone else's solution. Feel free to come back here with questions, though.