点击(此处)折叠或打开
- wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains doc.yonyoucloud.com --no-parent https://doc.yonyoucloud.com/doc/JMS2CN/index.html
参数解释
--recursive:开启递归下载,这样可以下载网站的所有页面。
--no-clobber:避免覆盖已存在的文件。
--page-requisites:下载网页所需的资源,像图片、CSS、JavaScript 文件等。
--html-extension:给下载的 HTML 文件加上 .html 扩展名。
--convert-links:转换页面中的链接,使其能在本地正常工作。
--restrict-file-names=windows:让下载的文件名符合 Windows 系统的命名规则,增强兼容性。
--domains doc.yonyoucloud.com:仅下载 doc.yonyoucloud.com 域名下的文件。
--no-parent:禁止下载上级目录的文件,防止下载到无关页面。
下载完成后,在当前目录下会生成一个以 doc.yonyoucloud.com 开头的目录,进入该目录,找到 doc\JMS2CN 文件夹,然后用浏览器打开其中的 .html 文件就可以直接阅读了。