如何将 HTML 页面保存为一个文件? [英] How to save HTML pages as one file?
问题描述
我希望能够将 HTML 页面保存/存档为一个文件(没有那些讨厌的外部文件夹).
I want to be able to save / archive HTML pages as one file (without those pesky external folders).
我希望生成的文件包含所有样式、图像和链接(视频和 Flash 也不错,但不是那么重要).
I want the resulting file to contain all styles, images, and links (videos and Flash would be nice, too, but not as crucial).
我希望生成的文件可搜索和编辑.
I want the resulting file to be searchable, and editable.
微软的 MHT 就是这样的工具之一,但不幸的是,它在 Linux 下是不可搜索的.MHT 不错,但我不想被锁定在一种操作系统或一家公司下.什么是好的替代方案 - 或者可能有一些我没有考虑过的完全不同的解决方案?
Microsoft's MHT is one of such tools, but unfortunately, it's not searchable under Linux. MHT is good, but I don't want to be locked under one operating system or one company. What would be a good alternative – or perhaps there's some entirely different solution I wasn't thinking about?
推荐答案
The SingleFile chrome 扩展程序 是一个很好的解决方案.
The SingleFile chrome extension is a good solution.
我还编写了自己的 python 工具来解决这个问题,我建议您尝试一下:https://github.com/zTrix/webpage2html
I have also written my own python tool to solve this problem which I would recommend giving a try: https://github.com/zTrix/webpage2html
这篇关于如何将 HTML 页面保存为一个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!