hi guys can anybody give idea to parse html webpage live url parsing
using
java.
i have code but the out put is in the form of html tags
so how can i split the tags so give idea friends
import java.net.*;
import java.io.*;
public class URLReader {
public static void main(
String[] ar) throws Exception {
URL yahoo = new URL("http://finance.yahoo.com");
BufferedReader in = new BufferedReader(new InputStreamReader(yahoo.openStream()));
BufferedWriter wr=new BufferedWriter(new FileWriter("sample.txt"));
String inputLine;
while ((inputLine = in.readLine()) != null)
// System.out.println(inputLine);
try
{
wr.write(inputLine);
}catch(Exception e)
{
e.printStackTrace();
}
in.close();
}
}
bye
Naga