webarchive

Solid

Extract .webarchive files (saved from Safari) into plain HTML/assets using the WebArchiveExtractor CLI. Use when the user wants to unarchive, extract, or convert a .webarchive file.

Web & Frontend 344 stars 60 forks Updated 2 months ago NOASSERTION

Install

View on GitHub

Quality Score: 75/100

Stars 20%
85
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

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. ## How to run WebArchiveExtractor ``` /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. ## Prerequisites The app must be installed at `/Applications/WebArchiveExtractor.app`. Check with: ```sh 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`: ```sh export PATH="$PATH:/Applications/WebArchiveExtractor.app/Contents/MacO...

Details

Author
robrohan
Repository
robrohan/WebArchiveExtractor
Created
15 years ago
Last Updated
2 months ago
Language
Objective-C
License
NOASSERTION

Similar Skills

Semantically similar based on skill content — not just same category