• Post Reply Bookmark Topic Watch Topic
  • New Topic

downloading a website from a given URL  RSS feed

 
aresh babu
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9443
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!