473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to download WWW pages

This is probably extremely easy for most of you, but how do I download the
source code of a web page?

Say I got an applet and when I press a button it will then go download the
HTML source code (as plain text) for a certain web address, say
http://abc.com/index.html and I can then manually (well with other Java
code) go through the page and extract the information I want and then
display it in my applet. I don't want to actually show the page in my
applet. The reason behind this is that I would like to extract some table
entries from an external page and combine the results. Going through the
source code shouldn't be to hard.

Many thanks for any help

Rob
Jul 17 '05 #1
2 1687
"Rob Ketzscher" <ke*******@hotmail.com> wrote in message
news:cf**********@wisteria.csv.warwick.ac.uk...
| This is probably extremely easy for most of you, but how do I download the
| source code of a web page?
|
| Say I got an applet and when I press a button it will then go download the
| HTML source code (as plain text) for a certain web address, say
| http://abc.com/index.html and I can then manually (well with other Java
| code) go through the page and extract the information I want and then
| display it in my applet. I don't want to actually show the page in my
| applet. The reason behind this is that I would like to extract some table
| entries from an external page and combine the results. Going through the
| source code shouldn't be to hard.
|
| Many thanks for any help
|
| Rob

Look in the java.net package, there is plenty there to get you started :-)
--
-P
"Much as some folks hate to lose their way, me, I pray to God that I will."
|
Jul 17 '05 #2
You can make use of HttpClient
(http://jakarta.apache.org/commons/httpclient/) to retrieve the page,
then do whatever you want with it.

"Rob Ketzscher" <ke*******@hotmail.com> wrote in message news:<cf**********@wisteria.csv.warwick.ac.uk>...
This is probably extremely easy for most of you, but how do I download the
source code of a web page?

Say I got an applet and when I press a button it will then go download the
HTML source code (as plain text) for a certain web address, say
http://abc.com/index.html and I can then manually (well with other Java
code) go through the page and extract the information I want and then
display it in my applet. I don't want to actually show the page in my
applet. The reason behind this is that I would like to extract some table
entries from an external page and combine the results. Going through the
source code shouldn't be to hard.

Many thanks for any help

Rob

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jonathan.beckett | last post by:
Hi All, I have just made version 0.4.8 of the PluggedOut CMS Content Management System available for download - it's free, and covered by the GPL. It's still very much a work in progress...
7
by: atse | last post by:
Hi, I want the MP3 audio files to be able to download by users only. Even I set the pages validated by session, anyone still can type the download url to get my files without access of the pages...
2
by: duane | last post by:
Dear Experts: I am trying to measure a HTML page download time on the client side and store the value into a textfile located in the server. I have successfully measured the page download time...
7
by: Albretch | last post by:
Hi, I was wondering what would be the way to have the same content rendered in a different way; say from a page with navigation bars presenting the text in two columns to a "printable" one...
6
by: chon | last post by:
I have an ASP page that is sent a file location as a parameter. It opens this file, loads the ADODB.Stream object and does a binary write to the page forcing the download dialog to appear. This...
1
by: com | last post by:
Extreme Web Reports 2005 - Soft30.com The wizard scans the specified MS Access database and records information such as report names, parameters and subqueries. ......
1
by: Al | last post by:
Hi! I try to use custom download page (download.aspx) wich writes file (about 700Mb) to response. But I can download only one file from one IP at the same time. I think that this is IIS or...
3
by: ACaunter | last post by:
Hi there, when one of my pages loads up, the download dialog box pops up to download a file.. but the window turns all white and even after you download the file, the window stays white.. what...
5
by: Neil Rossi | last post by:
I have an issue with a particular ASP page on two web servers. Let's call these servers Dev1 and Beta1. Both Servers are running IIS 5, Windows 2000 SP4 with "almost" all of the latest patches. ...
3
by: Gargoyle | last post by:
I am curious to know if any research has been conducted regarding the efficiency of having a single (large) .js file downloaded for a webpage compared to several smaller .js files. For example...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.