windows下先安装wget:GNU Wget 1.21.1 for Windows,放到System32目录下
确定一个文件夹,cmd输入:
wget -c -m -k -np -p -E -U Mozilla --no-check-certificate http://layui.itmtr.cn/
-c 断点传续
-m --mirror 克隆为镜像,是-N -r -l inf --no-remove-listing 的缩写形式
-k 把非相对链接转换为相对链接
-np, --no-parent 不追溯至父目录。
-p 下载所有用于显示 HTML 页面的图片之类的元素
-E 以.html扩展名保存
-U 指定agent