Web Cloner

Home Developers

Options for developers

Each field is one wget flag, and the app will hand you the finished command.

Open Advanced in the Options card and the app stops guessing. Each field maps to exactly one wget flag, and a field you leave empty adds nothing to the command.

FieldWhat it doesFlag
Skip these pathsLeave out whole sections, comma separated--exclude-directories
Only these pathsSave one section and nothing else--include-directories
Skip URLs matchingA regular expression tested against the full URL--reject-regex
Skip file typesExtensions to refuse, comma separated--reject
Also allow domainsFollow an extra asset domain alongside the site--span-hosts --domains
Stop afterA hard cap in megabytes--quota
Extra headersOne per line, sent with every request--header
HTTP user and passwordBasic authentication--user, --password
Keep original linksLeaves the HTML exactly as the server sent itdrops --convert-links
Ignore SSL errorsFor a staging box with a bad certificate--no-check-certificate
How deepWhole site, or one to five levels--level
SpeedPolite adds a wait and a rate cap--wait, --limit-rate
Download images and mediaOff leaves HTML, CSS and JavaScript--reject on media types

Two examples

Documentation only

Put /docs in Only these paths. Everything outside it is ignored, including the marketing pages and the blog that usually account for most of a download.

Everything except the archives

Put pdf in Skip file types and /tag/ in Skip URLs matching. Tag and category pages repeat content you already have, so dropping them often halves the job.

The command it builds

Copy wget command puts the exact invocation on your clipboard, ready for a terminal or a scheduled script. The app log hides any password; the copied command keeps it so the command still runs.

wget --recursive --level=inf --no-parent --convert-links --page-requisites \ --exclude-directories=/blog --reject-regex='\.pdf$' --quota=500m \ --directory-prefix=/Users/you/Downloads/WebCloner https://example.studio

What the app adds on top of wget

Two things happen that a bare command does not do.

The page list is parsed from wget's own output. Each URL becomes a row with a state and a size, assets are kept out of the way, and the counters filter the list.

The repair pass runs when a clone finishes. It reads the saved HTML and CSS, finds asset URLs that still point at another domain, downloads the ones you do not have yet, and rewrites each reference to the local file. It repeats once, so assets referenced by a stylesheet it just fetched are picked up too. That is the step that keeps images from going missing in an offline copy.

Reading the source

Argument building lives in one function, wgetArgs(), with tests beside it, so what the app runs is easy to check. The whole project is four Swift files. Read it on GitHub.

Take a copy while it is still up

Sites disappear. A copy on your own disk does not.