Reputation: 9759
Are there any utilities or web browsers that can save a file and referenced 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?
Upvotes: 13
Views: 14592
Reputation: 31
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.
Upvotes: 3
Reputation: 27073
Safari (on both Windows and Mac) can create .webarchive files.
Link:
http://en.wikipedia.org/wiki/Webarchive
Upvotes: 1
Reputation: 1291
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
Upvotes: 7
Reputation: 23179
MHTML is the format for this.
http://en.wikipedia.org/wiki/MHTML
Upvotes: 4
Reputation: 31320
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.
Upvotes: -2