开发者

How can I save a "complete" HTML file as single file?

开发者 https://www.devze.com 2023-03-01 04:55 出处:网络
Are there any utilities or web browsers that can save a file and referenc开发者_如何学Goed resources as a single HTML file?

Are there any utilities or web browsers that can save a file and referenc开发者_如何学Goed resources as a single HTML file?

With most web browsers / wget there's the option to download required CSS and images as seperate files. Is there a way to automatically inline the CSS and images?


I have made a python script for this. Up to now, it covers my own needs perfectly. Hopes to be useful.

https://github.com/zTrix/webpage2html


MHTML is the format for this.

http://en.wikipedia.org/wiki/MHTML


This web extension might help you.

https://github.com/gildas-lormeau/SingleFile

"It helps you to save a complete web page into a single HTML file."

It is available for almost all popular browsers.


Safari (on both Windows and Mac) can create .webarchive files.

Link:
http://en.wikipedia.org/wiki/Webarchive


If you have access to wget, then you likely have access to a tar utility too. While it won't give you a browser-readable single file, if you wget a page and then tar up all of the downloaded artifacts, you effectively have a 1-file version of everything needed for that page.

0

精彩评论

暂无评论...
验证码 换一张
取 消