hi,
This can be done in perl
use LWP::Simple;
$htmlpage = get($url);
In java
URL url = new URL("$url");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
BufferedReader rd = new BufferedReader(new InputStreamReader
(conn.getInputStreamReader());
String line;
while(line=rd.readLine() != null) {
response += line;
}
The html page will be now available in the response String. This
String can then be used with the regex to solve according to our
requirement.
Hope that helps you.
Giridhar Nandigam.
pi********@yahoo.com.hk (yy) wrote in message news:<71************************@posting.google.co m>...
hi~~
I wanna write a java program that can get data from a webpage...
There are some figures frequently updated on the web...
I want to get the latest data and do some calculation, but I have no
ideas on how to get the data and how to know there is update on the
web
please help~~
thanks a lot!