Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Extracts Safari .webarchive files into plain HTML and assets using WebArchiveExtractor CLI, with optional output directory and URL prefix.
Use this skill ↓32% 64%+32 ptsof test cases passed
Passed 14 of 22 test cases with the skill, and 7 of 22 without it.
Write out the exact shell command to extract `/Users/alex/page.webarchive` into `/Users/alex/out` with a URL prefix of `http://localhost:8080/` using the binary at `/Applications/WebArchiveExtractor.app/Contents/MacOS/WebArchiveExtractor`.
Includes -i /Users/alex/page.webarchive in the command
3 of 3 safety checks passed
The user wants to extract a .webarchive file using WebArchiveExtractor.
If arguments were provided ($ARGUMENTS), use them to infer the input file and optionally the output directory or URL prepend. Otherwise, ask the user for the path to the .webarchive file.
/Applications/WebArchiveExtractor.app/Contents/MacOS/WebArchiveExtractor [-h] [-o <OutputDirectory>] [-p <URLPrepend>] -i <WebArchiveFile>
Options:
-i <WebArchiveFile> — required — path to the .webarchive file-o <OutputDirectory> — directory to write extracted files into (optional; defaults to a directory named after the archive next to it)-p <URLPrepend> — URI prefix to prepend to all asset URLs in the extracted HTML (optional; useful when serving the result from a subdirectory)Shorthand (no flag):
WebArchiveExtractor website.webarchive
A positional argument is treated as the -i value.
The app must be installed at /Applications/WebArchiveExtractor.app. Check with:
test -x /Applications/WebArchiveExtractor.app/Contents/MacOS/WebArchiveExtractor && echo "found" || echo "not installed"
If not found, tell the user to build and install from source (xcodebuild -project WebArchiveExtractor.xcodeproj) or drag a release build to /Applications.
To use WebArchiveExtractor without the full path, the user can add it to PATH:
export PATH="$PATH:/Applications/WebArchiveExtractor.app/Contents/MacOS/"
Or create a symlink:
Next to this one in the catalogue, plus more from the same author.