Skip to main content

Clone any website in seconds. Perfect for learning, prototyping, and building.

Project description

๐ŸŒ WebClone

Clone any website in seconds. Perfect for learning, prototyping, and building.

PyPI version License: MIT Python 3.7+

WebClone is a powerful command-line tool that creates perfect clones of any website, downloading all HTML, CSS, JavaScript, images, and fonts while organizing everything intelligently.

โœจ Features

  • ๐Ÿš€ One-Command Cloning - Clone any website with a single command
  • ๐Ÿ“ฆ Smart Resource Management - Automatically downloads and organizes all assets
  • ๐ŸŽจ Preserves Design - Maintains exact styling, animations, and layout
  • ๐Ÿ”ง Intelligent Path Fixing - Updates all resource paths to work locally
  • ๐Ÿ“ Auto Documentation - Generates README for each cloned site
  • ๐ŸŽฏ Perfect for Learning - Study how top companies build their sites
  • ๐Ÿ’ผ Professional Use - Create templates and prototypes quickly

๐ŸŽฅ Demo

# Clone any website
webclone https://www.docker.com

# Clone with custom name
webclone https://stripe.com stripe_clone

# It's that simple!

๐Ÿ“ฅ Installation

From PyPI (Recommended)

pip install webclone-cli

From Source

git clone https://github.com/AbdirahmanNomad/webclone.git
cd webclone
pip install -e .

๐Ÿš€ Quick Start

Basic Usage

# Clone a website
webclone https://example.com

# Clone with custom output directory
webclone https://example.com my_custom_folder

# View the cloned site
cd example_com_cloned
python -m http.server 8000
# Visit http://localhost:8000

Real-World Examples

# Clone documentation sites
webclone https://docs.stripe.com stripe_docs

# Clone landing pages
webclone https://vercel.com vercel_landing

# Clone portfolio sites
webclone https://dribbble.com dribbble_clone

๐Ÿ“– What Gets Cloned

WebClone downloads and organizes:

  • โœ… HTML - Complete page structure
  • โœ… CSS - All stylesheets and styles
  • โœ… JavaScript - All scripts and functionality
  • โœ… Images - Including srcset and background images
  • โœ… Fonts - Web fonts and typography
  • โœ… Icons - SVGs and icon fonts

๐Ÿ“‚ Output Structure

your_cloned_site/
โ”œโ”€โ”€ index.html              # Main HTML file
โ”œโ”€โ”€ README.md              # Auto-generated documentation
โ””โ”€โ”€ assets/
    โ”œโ”€โ”€ css/               # Stylesheets
    โ”œโ”€โ”€ js/                # JavaScript files
    โ”œโ”€โ”€ images/            # Images and graphics
    โ”œโ”€โ”€ fonts/             # Web fonts
    โ””โ”€โ”€ files/             # Other assets

๐ŸŽฏ Use Cases

1. Learning & Education

Study how top companies structure their websites:

webclone https://www.apple.com
webclone https://www.stripe.com
webclone https://www.notion.so

2. Prototyping

Start your project with proven designs:

webclone https://landing-page-example.com my_prototype
# Customize the HTML and CSS to fit your needs

3. Design Inspiration

Build a library of design references:

webclone https://awwwards.com/sites/site1 inspiration/site1
webclone https://awwwards.com/sites/site2 inspiration/site2

4. Client Projects

Quickly create templates for clients:

webclone https://template-site.com client_project
# Customize with client branding

โš™๏ธ Advanced Options

from webclone import UniversalWebsiteCloner

# Programmatic usage
cloner = UniversalWebsiteCloner(
    url="https://example.com",
    output_dir="my_clone"
)
cloner.clone()

๐Ÿ› ๏ธ Requirements

  • Python 3.7 or higher
  • Internet connection
  • Required packages (auto-installed):
    • requests
    • beautifulsoup4
    • lxml

๐Ÿ“‹ Command Line Options

webclone <url> [output_directory]

Arguments:
  url                  URL of the website to clone
  output_directory     Optional: Custom output folder name

๐ŸŽจ What Makes WebClone Special

Feature WebClone Other Tools
One-command cloning โœ… โŒ
Smart resource organization โœ… โŒ
Auto path fixing โœ… Partial
Handles modern frameworks โœ… โŒ
Preserves animations โœ… โŒ
Auto documentation โœ… โŒ
No configuration needed โœ… โŒ

๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Development Setup

git clone https://github.com/AbdirahmanNomad/webclone.git
cd webclone
pip install -e ".[dev]"

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘ค Author

Abdirahman Ahmed

๐Ÿ™ Acknowledgments

  • Built with Python and BeautifulSoup
  • Inspired by the need for better web development learning tools
  • Thanks to all contributors and users!

โš ๏ธ Disclaimer

WebClone is intended for:

  • โœ… Learning and education
  • โœ… Personal prototyping
  • โœ… Design inspiration
  • โœ… With permission for client work

Please respect:

  • โŒ Copyright and intellectual property
  • โŒ Terms of service of websites
  • โŒ Privacy and data protection laws

Always get permission before using cloned content publicly or commercially.

๐Ÿ“Š Stats

  • 100+ websites successfully cloned
  • Zero configuration required
  • Seconds to complete a clone
  • Unlimited possibilities

๐Ÿ”ฅ Popular Clones

Users have successfully cloned:

  • Landing pages (Stripe, Vercel, Linear)
  • Documentation sites (Docker, React, Vue)
  • E-commerce sites (Shopify themes, product pages)
  • Portfolio sites (Designer portfolios, agency sites)

๐Ÿš€ Roadmap

  • GUI version
  • Browser extension
  • Multi-page cloning
  • Template marketplace
  • Direct deployment options
  • More customization options

๐Ÿ’ฌ Community

Join our community:

๐Ÿ“ˆ Show Your Support

Give a โญ๏ธ if this project helped you!


Made with โค๏ธ by Abdirahman Ahmed

Website โ€ข GitHub โ€ข Twitter

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webclone_cli-1.0.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webclone_cli-1.0.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file webclone_cli-1.0.0.tar.gz.

File metadata

  • Download URL: webclone_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for webclone_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 38b42db910ca7673ec770b55c8e9a7366650d218b812336841672307b77a38e9
MD5 15d99765dbbb8be0fcb86e6e8da1c18b
BLAKE2b-256 e1fe7b9e17dffc3947eccfac8c59e14d34127f5c26be6a20002b37fe1604caad

See more details on using hashes here.

File details

Details for the file webclone_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: webclone_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for webclone_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9301eda6dd36c7b06cec25bb9b7212b36249959f259c2709ea0eb1537340487d
MD5 bec3af47fe571ffecd7f0d1bd949c7c3
BLAKE2b-256 f16237aef234f90e32097381df9f6b43b0514e7ea8d2fdd3099fb69d349ab425

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page