Skip to content

Installation and Quick Start

Harsimran Sidhu edited this page Jul 15, 2026 · 1 revision

Installation and Quick Start

Requirements

  • Python 3.10 or newer
  • pip

Install from PyPI (recommended)

pip install website-downloader

This gives you the website-downloader console command.

Install from source

git clone https://github.com/PKHarsimran/website-downloader.git
cd website-downloader

python -m venv .venv
.venv\Scripts\activate        # macOS/Linux: source .venv/bin/activate
pip install -e .

Optional extras

Install extras only when you need them:

Install Adds
pip install "website-downloader[fast]" Faster HTML parsing with lxml (used automatically when present)
pip install "website-downloader[render]" Playwright JavaScript rendering for --render-js / --headless
pip install "website-downloader[ux]" Rich terminal progress dashboard for --progress
pip install -e ".[dev]" Tests, formatting, and linting (source checkout)

For [render], also install the browser once:

playwright install chromium

Your first crawl

website-downloader --url https://example.com --destination example_backup --max-pages 100

What this does:

  1. Starts from the provided URL.
  2. Crawls same-origin pages up to --max-pages.
  3. Downloads internal assets (CSS, JS, images, fonts, media).
  4. Rewrites references so the copy works offline.
  5. Saves everything into the destination folder.

Then open example_backup/index.html in your browser.

Entry points

Both of these run the same tool:

website-downloader --url https://example.com     # installed console command
python website-downloader.py --url https://example.com   # compatibility wrapper

Next steps

Clone this wiki locally