我并不仅仅意味着保存HTML.我还想自动存储所有相关文件(图像,CSS文件,可能是嵌入式SWF等),并希望重写本地浏览的链接.
预期用途是个人书签应用程序,其中在原始副本被删除的情况下缓存链接内容.
−p −−page−requisites This option causes Wget to download all the files that are necessary to properly display a givenHTML page. Thisincludes such things as inlined images,sounds,and referenced stylesheets.
以下命令:
wget -p http://<site>/1.html
将下载page.html及其所需的所有文件.