| Author |
downloading a website from a given URL
|
aresh babu
Ranch Hand
Joined: Aug 31, 2008
Posts: 65
|
|
|
How can we download a website from a given URL. It must download all the pages from that website. It should take the depth of retrieval from the user input. All the files/pages must be stored in a folder.
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8263
|
|
|
java.net.URL can retrieve the content of a particular URL. If you want the images in a web page, you've got to make a connection to download each, which necessitates parsing the HTML page. The Java API includes an HTML parser: javax.swing.text.html.parser.DocumentParser
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
 |
|
|
subject: downloading a website from a given URL
|
|
|