Repository navigation
Troubleshooting and FAQ
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.comThe site likely renders content with JavaScript. Use Playwright rendering:
pip install "website-downloader[render]"
playwright install chromium
website-downloader --url https://example.com --render-jsSee JavaScript Rendering.
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- Raise
--page-threads(for the site's HTML pages) and/or--threads(for assets). - Install the
[fast]extra for lxml parsing. - Note:
--render-jsforces a single page worker and is inherently slower.
--cache-file only makes sense with incremental mode. Add --update, or drop --cache-file.
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.
Pass your session via cookies or headers:
website-downloader --url https://portal.example.com --cookie-file cookies.txtSee Cookbook.
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.