wget to download website
- Sunday, July 11, 2010, 13:40
- Linux
- Add a comment
|
|
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.


