webarchive-to-html icon indicating copy to clipboard operation
webarchive-to-html copied to clipboard

This command line converts .webarchive to .html

webarchive-to-html

This command line converts Safari's .webarchive file to .html.

For converting .webarchive to a complete resources embed .html, there is also webarchive-to-singlefile

GitHub go.mod Go version Build GitHub license

Install

> go get github.com/gonejack/webarchive-to-html

Usage

> webarchive-to-html *.webarchive

Flags

Flags:
  -h, --help        Show context-sensitive help.
  -v, --verbose     Verbose printing.
      --decorate    Append Header & Footer (not suitable for complex page) to html.
      --about       About.

Tips

Chrome and Firefox would not load local images by default.

To change their settings:

https://dev.to/dengel29/loading-local-files-in-firefox-and-chrome-m9f.

Or use Safari instead.