TECH CORNER

Bite Into Technology

DOWNLOAD A WEBSITE

(THISĀ  WILL WORK UNDER ONLY IN GNU/LINUX OPERATING SYSTEMS)

Here is a simple and effective way to get the files downloaded from a website without actually visiting each and every link to the sub pages. This is also useful in case the pages are of type XHTML or text type-one can make them .html by use of an appropriate switch like -E. Go to the directory on which you wish to download all the content from site.

Then go to terminal and type the fallowing command

wget -r -p -k -E http://www.nrcfoss.org.in/

..where:

-r is for recursive download of pages

-p is for linking pages locally so that users can browse them easily once the download is completed

-k is to create the directory structure

-E is to create .html extensions to the type XHTML or text files

July 20, 2009 Posted by increa | Linux | | No Comments Yet