Skip to content

Troubleshooting and FAQ

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

Troubleshooting and FAQ

Troubleshooting

The saved pages look unstyled or images are missing

The site probably loads CSS, fonts, or images from an external domain. Enable external downloads for the hosts you need:

website-downloader --url https://example.com \
  --external-domains cdn.example.com fonts.gstatic.com

See External Assets and CDN.

The mirror is nearly empty or only captures a shell

The site likely renders content with JavaScript. Use Playwright rendering:

pip install "website-downloader[render]"
playwright install chromium
website-downloader --url https://example.com --render-js

See JavaScript Rendering.

Only the homepage was saved

Increase --max-pages (default is 50), and consider seeding from a sitemap so pages that aren't linked from the homepage are still found:

website-downloader --url https://example.com --max-pages 500 --sitemap

The crawl is slow

  • Raise --page-threads (for the site's HTML pages) and/or --threads (for assets).
  • Install the [fast] extra for lxml parsing.
  • Note: --render-js forces a single page worker and is inherently slower.

--cache-file requires --update

--cache-file only makes sense with incremental mode. Add --update, or drop --cache-file.

A 304 was received but the file was missing

This is handled automatically: the tool refetches the resource in full instead of writing an empty file. If you want a clean rebuild, delete the destination folder or the cache file.

Login-protected pages aren't captured

Pass your session via cookies or headers:

website-downloader --url https://portal.example.com --cookie-file cookies.txt

See Cookbook.

FAQ

Is this legal? Only mirror sites you own, have permission to archive, or are legally allowed to access. Respect each site's terms and robots.txt (--respect-robots).

How do I crawl politely? Keep --page-threads low, add --delay, enable --respect-robots, and set a descriptive --user-agent.

Does it work on Windows, macOS, and Linux? Yes. Paths are sanitized for cross-platform safety, including Windows reserved names and long-path handling.

Where are logs? A web_scraper.log file is written in the working directory, and progress is printed to the console (or a Rich dashboard with --progress).

Can I re-run without re-downloading everything? Yes — use --update. See Incremental Updates.

Can it export a standard archive? Yes — --zip-output and --warc-output. See Exports Zip and WARC.

Still stuck? Open an issue.

Clone this wiki locally