Let's drool over a URLScrapper class, which can be used to scrap or read a web page.
It connects to web page using the URL class, and then reads the web page over a socket.
Java makes this whole operation pretty simple as demonstrated below. This class can help you pull up information from any web page and then add pick and choose capability to your app using Xpath api.
import java.net.*;
import java.io.*;
public class URLScrapper {
public static void main(String args[]){
String line;
URL url = null;
URLConnection urlConn = null;
