๐ WebClone
A blazingly fast, async-first website cloning engine that preserves everything.
Features โข Quick Start โข Usage โข Docker โข Contributing
๐ฏ The Why
Traditional website cloners are slow, blocking, and fragile. They download one resource at a time, freeze on JavaScript-heavy sites, and produce incomplete mirrors.
WebClone is different. Built from the ground up with modern Python async/await, it:
โก Clones 10-100x faster with concurrent downloads
๐ญ Handles dynamic SPAs using Selenium for JavaScript rendering
๐จ Delivers beautiful CLI experience with real-time progress and colored output
๐๏ธ Follows Clean Architecture with type-safe, production-grade code
๐ณ Ships production-ready with Docker, full test coverage, and CI/CD
Whether you're archiving websites, conducting competitive research, or building training datasets, WebClone is the definitive solution.
โจ Features
๐ Blazingly Fast Async Engine
Concurrent downloads with configurable workers (5-50 parallel connections)
Intelligent queue management with depth-first and breadth-first strategies
Automatic retry logic with exponential backoff
๐ญ Dynamic Page Rendering
Full Selenium integration for JavaScript-heavy sites
Automated sidebar navigation for SPAs (Phoenix LiveView, React, Vue)
PDF snapshot generation with Chrome DevTools Protocol
Screenshot capture for visual archival
๐ Advanced Authentication & Stealth Mode โญ NEW
Bypass bot detection: Masks automation signatures (navigator.webdriver, etc.)
Fix GCM/FCM errors: Disables Google Cloud Messaging registration
Cookie-based auth: Save and reuse login sessions
Handle "insecure browser" blocks: Automatic workarounds for Google, Facebook, etc.
Rate limit detection: Smart throttling and backoff strategies
Human behavior simulation: Mouse movements and natural scrolling
๐จ World-Class CLI Experience
Beautiful terminal UI powered by Rich
Real-time progress bars with per-resource status
Colored, formatted output with tables and panels
JSON logs for production monitoring
๐๏ธ Production-Grade Architecture
Type-safe: 100% type hints with Mypy validation
Data validation: Pydantic V2 models with strict schemas
Async-first: Built on
aiohttpandasyncioModular design: Clean Architecture with dependency injection
Comprehensive logging: Structured JSON logs with contextual data
๐ฆ Modern Tooling
โก uv: Lightning-fast dependency management
๐ ruff: Ultra-fast linting and formatting
๐งช pytest: Comprehensive test suite with >90% coverage
๐ณ Docker: Multi-stage builds with distroless base images
๐ Security: Bandit audits and dependency scanning
๐ Quick Start
Prerequisites
Python 3.11+
uv (recommended) or pip
Installation
Your First Clone
That's it! Watch as WebClone downloads your site at lightning speed with beautiful progress bars.
๐จ Enterprise Desktop GUI (NEW!)
WebClone now includes a professional, native desktop interface built with modern Tkinter for superior performance:

The GUI opens instantly as a native desktop application with:
๐ Home Dashboard - Feature overview and quick start guide
๐ Authentication Manager - Visual cookie-based auth workflow with browser integration
๐ฅ Crawl Configurator - Point-and-click settings with real-time progress
๐ Results Analytics - Comprehensive stats, tables, and export options
Perfect for everyone! No command line required - professional desktop interface with instant startup, native performance, and seamless OS integration.
Advantages over web-based GUIs: โ Instant startup (no server to launch) โ Native desktop performance โ Better OS integration (file dialogs, notifications) โ No port conflicts โ Offline-friendly
๐ค MCP Server for AI Agents (NEW!)
WebClone is now an official Model Context Protocol (MCP) server, making website cloning available to AI agents like Claude, CrewAI, and any MCP-compatible framework!
AI agents can now:
๐ clone_website - Download entire websites automatically
๐ฅ download_file - Fetch specific files or URLs
๐ save_authentication - Guide for saving login sessions
๐ list_saved_sessions - View all authentication cookies
โน๏ธ get_site_info - Analyze websites before downloading
Example with Claude:
Compatible with:
โ Claude Desktop
โ CrewAI
โ LangChain
โ Any MCP-compatible AI framework
๐ See: docs/MCP_GUIDE.md and MCP_QUICKSTART.md
๐ Usage
Interface Options
WebClone offers four ways to use it:
๐จ Desktop GUI (Easiest - Enterprise Edition)
make guiNative desktop application
Instant startup, no browser required
Visual authentication manager
Real-time progress tracking
Perfect for all users!
๐ค MCP Server (For AI Agents)
make install-mcpClaude Desktop integration
CrewAI compatible
LangChain ready
AI-powered automation
Perfect for AI workflows!
๐ป Command Line (Most Powerful)
webclone clone https://example.comAutomation and scripting
CI/CD pipelines
Remote servers
Power users
๐ Python API (Most Flexible)
from webclone.core import AsyncCrawler # ... your codeCustom integrations
Advanced workflows
Developers
Basic Commands
Advanced Options
Real-World Examples
๐ Authentication & Stealth Examples
WebClone includes advanced features to handle authentication and bypass bot detection:
Python API for Authentication:
Fixes Common Issues:
โ "Couldn't sign you in - browser may not be secure"
โ GCM/FCM registration errors
โ Navigator.webdriver detection
โ Rate limiting and CAPTCHA challenges
See Authentication Guide for detailed instructions.
๐ณ Docker
Run WebClone in a containerized environment:
Docker Compose Example
๐๏ธ Architecture
WebClone follows Clean Architecture principles:
Key Design Decisions
Async-First: All I/O operations use
asynciofor maximum concurrencyType Safety: 100% type coverage with strict Mypy checks
Pydantic V2: Data validation at system boundaries
Dependency Injection: Services receive dependencies via constructors
Single Responsibility: Each module has one clear purpose
๐งช Development
Setup Development Environment
Run Tests
Code Quality
๐ค Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Quick Contribution Workflow
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Make your changes
Run quality checks (
make audit)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
๐ Benchmarks
Tested on a standard 4-core machine with 100 Mbps connection:
Website Type | Pages | Assets | Time (WebClone) | Time (wget) | Speedup |
Static Site | 50 | 200 | 8s | 45s | 5.6x |
Blog | 100 | 500 | 25s | 3m 20s | 8.0x |
Documentation | 200 | 800 | 1m 10s | 12m 15s | 10.5x |
SPA/Dynamic | 30 | 150 | 35s | N/A* | โ |
*wget cannot render JavaScript-based SPAs
๐ License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
๐ค Author
Ruslan Magana
Website: ruslanmv.com
GitHub: @ruslanmv
Email: contact@ruslanmv.com
๐ Star History
If you find WebClone useful, please consider giving it a star! โญ
๐ Acknowledgments
Typer - Beautiful CLI framework
Rich - Rich terminal formatting
Pydantic - Data validation
aiohttp - Async HTTP client
uv - Lightning-fast package installer
Made with โค๏ธ by
This server cannot be installed