Download a website in ubuntu
We will use wget to save entire webiste. Syntax is
wget <options> http://yoursitename.com
Following are the useful options you can use with wget.
| -c / --continue | Resume interrupted download. |
| -nd / --no-directories | Don't create directory hierarchy. |
| -P / --directory-prefix= | Save downloaded files to specified directory. |
| -U / --user-agent= | Spoof user agent string. |
| -r / --recursive | Go crazy :) |
| -l / --level= | use 0 for infinite depth level or use number greater than 0 for limited depth. |
| -k / --convert-links | Modify links inside downloaded files to point to local files. |
| -p / --page-requisites | Get all images, css, js files which make up the web page. |
| -np / --no-parent | Don't download parent directory contents. |
I normally use following command to download a website.
wget -r --level=0 -convert-links --page-requisites --no-parent <url>
Comments
Brett
wget -r -v --level=0 --convert-links --page-requisites --no-parent
cause is verbose and you can know what is going on
Thank you very much.
Thanks for this post.
Thank you!