Skip to content
Harsimran Sidhu edited this page Oct 25, 2026 · 3 revisions

Website Downloader CLI — Wiki

Turn any website you're authorized to copy into a fast, browsable offline mirror — with one command.

Website Downloader CLI is a modern, hackable alternative to wget --mirror and HTTrack, built in pure Python. It crawls pages, downloads assets, rewrites links, and saves everything into a local folder you can open, inspect, archive, or move into a migration workflow.

New here? Watch the 32-second animated walkthrough, then explore the scene-by-scene guide and source links.

pip install website-downloader
website-downloader --url https://example.com --destination example_backup --page-threads 4

Open example_backup/index.html in your browser and the whole site works from disk — pages, styles, scripts, images, fonts, and media, with links rewritten for offline browsing.

What it's good for

  • Offline backups and web archiving
  • Migration prep — capture a site before a rebuild or host move
  • Static-site review — inspect HTML/CSS/JS/media locally
  • Authenticated snapshots of portals and staging sites you're allowed to access

Documentation

Page What's inside
Installation and Quick Start Install options, extras, first crawl
CLI Reference Every command-line flag, with defaults
Cookbook Copy-paste recipes for common tasks
JavaScript Rendering Mirroring React/Vue/Next.js sites with Playwright
Incremental Updates --update, ETag/Last-Modified caching
Exports Zip and WARC Portable archive output
External Assets and CDN Downloading approved third-party assets
How It Works Architecture and crawl model
Troubleshooting and FAQ Common problems and answers
Contributing Dev setup, tests, and the CLA

Key features at a glance

  • 🚀 Parallel page fetching (--page-threads) and threaded asset downloads
  • ⚛️ Optional JavaScript rendering via Playwright (--render-js)
  • 🔁 Incremental re-mirroring with --update (ETag / Last-Modified)
  • 🍪 Cookies and custom headers for authorized access
  • 🧭 Sitemap-aware crawl seeding (--sitemap)
  • 📦 Zip and WARC 1.1 export
  • 🪟 Cross-platform-safe paths (long paths, reserved names, query hashing)

⚠️ Responsible use: only mirror sites you own, have permission to archive, or are legally allowed to access. See Troubleshooting and FAQ for polite-crawling guidance.

Clone this wiki locally