下载 html 页面以供离线使用
I want to make an html page available for offline viewing by downloading the html and all images / css resources from it, but not other pages which are links.
I was looking at httrack and wget but could not find the right set of arguments (I need the command line).
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想使用最新版本的
wget
下载,请使用 cygwin 安装程序获取并使用此版本
将 {website} 镜像到 {target-dir} (1.11.4 中没有图像)。
省略
-w 2
以加快进度。If you want to download using the newest version of
wget
, get it using cygwin installerand use this version
to mirror {website} to {target-dir} (without images in 1.11.4).
Leave out
-w 2
to speed up the progress.对于一页,以下 wget 命令行参数应该足够了。请记住,它可能不会下载所有内容,包括附加到 CSS 文件的背景图像等。
另请尝试
wget --help
获取所有命令行参数的列表。For one page, the following wget command line parameters should be enough. Please keep in mind that it might not download everything including background images attached to CSS files etc.
Also try
wget --help
for a list of all command line parameters.