webarchiver: Create safari webarchives from the command line.
November 29th, 2008 | Published in webarchiver | Comments
Webarchiver allows you to create Safari .webarchive files from the command line. Webarchives are a convenient way to store a webpage and its associated files (images, css, javascript, etc) in a single file. It is very simple to use:
./webarchiver -url http://www.google.com -output google.webarchive
Usage $
./webarchiver
webarchiver 0.2
Usage: webarchiver -url URL -output FILE
Example: webarchiver -url http://www.google.com -output google.webarchive
-url http:// or path to local file
-output File to write webarchive to</code>
Do not forget the ‘http://’ if you want to archive a webpage. If no ‘http://’ is present then webarchiver attempts to archive a local file.
Download
The easiest way to install webarchiver is using MacPorts:
sudo port install webarchiver
webarchiver source code (latest release)
Release notes
Version 0.3 : Changed URL and sorted out source for git.
Version 0.2 : John Winter fixed page loading issue.
Version 0.1 : Initial release.
Credits
- Most of the credit for this goes to Keith Blount for his very useful KBWebArchiver class.
- John Winter for testing and bug fixing. Thanks John.
- Rob Griffiths for hosting a copy of the source when my blog was down.
- Boey Maun Suang for creating a MacPort
