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.
精彩评论