HTTrack
$ httrack Community Med RiskHTTrack (httrack) is a classic C-based offline browser that recursively mirrors websites into navigable local HTML directories by rewriting links for offline browsing. While reliable for static archival mirrors, its CLI predates JSON stdout conventions and enters an interactive wizard if invoked without a URL.
brew install httrack Performs recursive local HTML mirror downloading and link rewriting; not an interactive browser automation tool.
Agent-Readiness Checklist
Local Probe EvidenceCaptured --help excerpt
HTTrack version 3.49-2 usage: httrack <URLs> [-option] [+<URL_FILTER>] [-<URL_FILTER>] [+<mime:MIME_FILTER>] [-<mime:MIME_FILTER>] with options listed below: (* is the default value) General options: O path for mirror/logfiles+cache (-O path_mirror[,path_cache_and_logfiles]) (--path <param>) Action options: w *mirror web sites (--mirror) W mirror web sites, semi-automatic (asks questions) (--mirror-wizard) g just get files (saved in the current directory) (--get-files) i continue an interrupted mirror using the cache (--continue) Y mirror ALL links located in the first level pages (mirror links) (--mirrorlinks) Proxy options: P proxy use (-P proxy:port or -P user:pass@proxy:port) (--proxy <param>) %f *use proxy for ftp (f0 don't use) (--httpproxy-ftp[=N]) %b use this local hostname to make/send requests (-%b hostname) (--bind <param>) Limits options: rN set the mirror depth to N (* r9999) (--depth[=N]) %eN set the external links depth to N (* %e0) (--ext-depth[=N]) mN maximum file length for a non-html file (--max-files[=N]) mN,N2 maximum file length for non html (N) and html (N2) MN maximum overall size that can be uploaded/scanned (--max-size[=N]) EN maximum mirror time in seconds (60=1 minute, 3600=1 hour) (--max-time[=N]) AN maximum transfer rate in bytes/seconds (1000=1KB/s max) (--max-rate[=N]) %cN maximum number of connections/seconds (*%c10) (--connection-per-second[=N]) GN pause transfer if N bytes reached, and wait until lock file is deleted (--max-pause[=N]) Flow control: cN number of multiple connections (*c8) (--sockets[=N]) TN timeout, number of seconds after a non-responding link is shutdown (--timeout[=N]) RN number of retries, in case of timeout or non-fatal errors (*R1) (--retries[=N]) JN traffic jam control, minimum transfert rate (bytes/seconds) tolerated for a link (--min-rate[=N]) HN host is abandonned if: 0=never, 1=timeout, 2=slow, 3=timeout or slow (--host-control[=N]) Links options: %P *extended parsing, attempt to parse all links, even in unknown tags or Javascript (%P0 don't use) (--extended-parsing[=N]) n get non-html files 'near' an html file (ex: an image located outside) (--near) t test all URLs (even forbidden ones) (--test) %L <file> add all URL located in this text file (one URL per line) (--list <param>) %S <file> add all scan rules located in this text file (one scan rule per line) (--urllist <param>) Build options: NN structure type (0 *original stru
FCRS-1.0 6-Dimension Breakdown
Invoking httrack without arguments enters an interactive prompt wizard, flags use terse legacy syntax (-%v0, -r2), and there is no JSON stdout output.
- Interactive prompt wizard when run bare; no JSON stdout flag
- Requires
-qand explicit URL/flags to run non-interactively
Respects robots.txt by default and scopes writes to -O <dir>, though unbounded recursive mirroring can download gigabytes if -r depth is omitted.
- Requires
-r<N>depth cap to prevent full-site recursive downloads
Available via Homebrew, Linux packages, and Windows installers, though upstream binaries/builds are aging on modern platforms.
- Installable via
brew install httrackandapt
Effective link-rewriting engine for static HTML sites, but lacks modern JS/SPA rendering.
- Static HTML parser; rewrites links for offline viewing
Legacy community codebase (xroche/httrack) with minimal recent upstream activity.
- Infrequent commits in
xroche/httrack
Complete legacy HTML user guide (fcguide.html) and httrack --help.
- Users guide hosted at
httrack.com/html/fcguide.html
Security, Auth & Guardrails
Stores optional cookies in cookies.txt inside each mirror's hts-cache/ folder.
Free, GPL-3.0-or-later open-source C utility.
# HTTrack Agent Rules - Never run bare `httrack` with no arguments (it launches an interactive text wizard that blocks stdin). - Always pass an explicit URL, `-O <dir>`, depth cap (`-r2`), and `-q` (`--quiet`).
Agent-Ready Command Recipes
Safe Read-Only Queries
httrack --help
Prints the non-interactive flag reference without entering HTTrack's interactive prompt loop.
Controlled Writes & Previews
httrack https://example.com -O ./mirror -r2 -q -%v0
Recursively mirrors up to depth 2 (-r2) quietly (-q -%v0) into ./mirror without interactive prompts.
Strengths for Agents
- + Battle-tested static HTML link rewriting and incremental mirror updates (
--update). - + Respects
robots.txtand rate controls out of the box.
Caveats & Pitfalls
- ! Running
httrackwithout arguments triggers an interactive stdin prompt that hangs agents. - ! No JSON stdout output and cryptic legacy single-letter/
%flags; cannot render JS-heavy SPAs.