Wget用于离线阅读的特定URL

时间:2011-02-11 19:01:56

标签: wget

我正在尝试下载特定网址,例如http://website.com/index.htmlhttp://website.com/example.html

这是为了离线阅读,我希望Wget获取所有相关的图像,JavaScript和CSS文件。

使用wget -k -m http://website.com/index.html将下载整个网站,而不仅仅是http://website.com/index.html

1 个答案:

答案 0 :(得分:2)

您想使用--page-requisites(或-p)选项;见the man page on gnu.org