wget to download website

Wget could be used for retrieving website from web servers.Features of wget includes recursive downloading,conversion of links for offline viewing of websites.And wget application retrieve the content through proxy also.

Here is the procedure

Create a directory to download the website using mkdir
{code codetype=php}#mkdir download{/code}
Then change to that directory and use wget command
{code codetype=php}#cd download
#wget -r -mkp http://websitename.com{/code}

Options used::
r             To retrieve files recursively
m           To create a mirror(This option turns on recursion and time-stamping, sets
              infinite recursion depth and keeps FTP directory listings.)
k            To convert the links(To make offline browsing easier).This affects not only
              the visible hyperlinks, but any part of the document that links to external
              content, such as embedded images, links to style sheets, hyperlinks to non-HTML content, etc.
p            page-requisites(This option causes Wget to download all the files that are
              necessary to properly display a given HTML page. This includes such things
              as in-lined images, sounds, and referenced stylesheets.)

This article is only for educational purpose.

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

Related Posts

  • No Related Post
Related Posts with Thumbnails

About the Author

Sudheesh MP

has written 15 stories on this site.

Linux administrator(RHCE), Lynuxstuff.com(Founder)

Write a Comment

Copyright © 2012 CoreTimer.com|System Admin’s Reference. All rights reserved.

Switch to our mobile site