Use wget to recursively mirror the site
- 2020-06-12 11:38:13
- OfStack
Have time to see the page of other people's website is more beautiful, just want to pick skin down, learn to learn. Share wget, a common website I use
This command downloads the entire site in a recursive manner and converts links in the downloaded page into local links.
With parameters, wget can be quite a powerful download tool.
Details of the wget command
wget -r -p -np -k http://xxx.com/xxx
-ES16en, --recursive (recursive) specify recursive download. (Recursive download specified)
make links downloaded HTML point to local files. (Convert the links in the downloaded HTML page to relative links, i.e. local links)
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) don 't ascend the directory.
In addition, breakpoint continuation USES the -nc parameter and log USES the -ES62en parameter
Take a stab at my own website
perform
wget -r -p -np -k https://xxx.com/
The command
This entry was in and tagged wget, mirror site. Bookmark the permalink.