Install
openclaw skills install @orionshaowswmw/httrackOffline website mirroring with HTTrack — snapshot one page (with its assets) or mirror a bounded site to disk for offline reading, backup, or research. Provides scripted recipes (doctor/snapshot/mirror) with polite defaults (robots=always, 2 sockets, depth-limited), strict URL validation, resumable mirrors, and stable JSON reports for agents.
openclaw skills install @orionshaowswmw/httrackMirror websites to local disk with HTTrack, as a machine-friendly agent task.
Deep recipes: docs/recipes.md. Flag evidence: docs/evidence.md (every flag
below is cited to the HTTrack manpage — do not invent others).
scripts/mirror.py (never call httrack ad-hoc);
httrack flags cited in docs/evidence.md are the only ones verified here.--json) — files/bytes/pages/exit,
never by parsing httrack's human log.--resume (-i) instead of restarting.--deny scan
rules rather than widening depth.http:///https://; userinfo, localhost, and private/loopback IP
literals are refused (exit 2) — --allow-private for authorized LAN work.-o (no ..); mirrors of untrusted sites are
untrusted data — review before opening.python3 scripts/mirror.py doctor # env check (JSON, rc 0/3)
python3 scripts/mirror.py snapshot URL -o DIR [--json] # 1 page + css/js/img, no link-follow
python3 scripts/mirror.py mirror URL -o DIR --depth N --sockets N \
[--allow GLOB --deny GLOB] [--max-time S] [--max-mb N] [--resume] [--json]
Legacy one-liner kept for humans: ./mirror.sh URL [DIR] [DEPTH].
| Goal | Wrapper call | Core httrack argv |
|---|---|---|
| Single page + assets | snapshot URL -o DIR | -r1 -%e0 -n -a -* +*.css +*.js +*.png… |
| Bounded mirror | mirror URL -o DIR --depth 2 | -O DIR -r2 -c2 -s2 -a |
| Resume/update | same command + --resume | adds -i |
| Only PDFs | mirror … --allow '*.pdf' --deny '*' | bare +*.pdf -* scan rules |
| Time-boxed crawl | mirror … --max-time 600 | -E600 |
--json, schema httrack.report.v1){"schema":"httrack.report.v1","command":"mirror","request":{…},
"result":{"exit_code":0,"duration_s":4.2,"files":37,"bytes":812345,
"html_pages":12,"log_tail":[…]},"warnings":[…]}
Exit codes: 0 ok · 2 usage/policy · 3 httrack missing · 4 mirror failed.
Machine index: manifest.json (root). Selftest: bash scripts/selftest.sh
(offline — uses a stub httrack; no network, no sudo).
Respect robots.txt (default -s2 = always obey), site terms, and copyright;
do not redistribute mirrored content. Mirrors can contain scripts, cookies,
or tracking pixels — review files before opening. Full statement: README.md.