Download the entire website recursively using wget (essential for the website)

Source: Internet
Author: User

Download the entire website recursively using wget (essential for the website)

If you have time to see the beautiful pages of other websites, you just want to take a look and learn. Share a common webshell command wget

This command can download the entire site recursively and convert the link on the downloaded page to a local link.

After adding parameters to wget, it can become a powerful download tool.

Wget command details

Http://xxx.com/xxx of wget-r-p-np-k

-R, -- recursive (recursive) specify recursive download. (specify recursive download)

-K, -- convert-links (Conversion link) make links in downloaded HTML point to local files. (convert the link on the downloaded HTML page to a relative link, that is, a local link)

-P, -- page-requisites (page essential element) get all images, etc. needed to display HTML page. (download all images and other pages to display the required content)

-Np, -- no-parent (not traced back to the parent level) don't ascend to the parent directory.

In addition, the-o parameter of the-nc parameter log is used for resumable data transfer.

Give me a try on my website.

Run wget-r-p-np-k http://www.phpernote.com/command

After recursive download is completed, you will find that your current directory has a directory www.phpernote.com /.

Go to this directory and check

Be familiar with wget commands to help your website.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.