File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes downloading a website from a given URL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "downloading a website from a given URL" Watch "downloading a website from a given URL" New topic
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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: downloading a website from a given URL
 
Similar Threads
Hope some body will respond
Lucene
Shortcut for throwing a NullPointerException
IBM Webshpere Portal Download
Code for recursively downloading pages from particular web site(url)?