Repository navigation
Installation and Quick Start
Harsimran Sidhu edited this page Jul 15, 2026
·
1 revision
- Python 3.10 or newer
- pip
pip install website-downloaderThis gives you the website-downloader console command.
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 .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 chromiumwebsite-downloader --url https://example.com --destination example_backup --max-pages 100What this does:
- Starts from the provided URL.
- Crawls same-origin pages up to
--max-pages. - Downloads internal assets (CSS, JS, images, fonts, media).
- Rewrites references so the copy works offline.
- Saves everything into the destination folder.
Then open example_backup/index.html in your browser.
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- CLI Reference — every available flag
- Cookbook — recipes for cookies, sitemaps, exports, and more
- How It Works — what happens during a crawl