Skip to content

πŸ“¦ site2zip – A Telegram bot that turns any website into a downloadable ZIP file, fast and simple πŸš€

License

Notifications You must be signed in to change notification settings

Ahmed-GoCode/Site2Zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ site2zip – Website to ZIP Telegram Bot

Download any website as a ZIP archive directly from Telegram πŸš€


✨ Description

site2zip is a Telegram bot that allows users to download websites and receive them as a compressed ZIP file right inside Telegram.
No need for wget or external tools β€” everything runs on pure Python with requests and beautifulsoup4.


πŸš€ Features

  • πŸ”— Send a URL, get a ZIP file of the website
  • πŸ“„ Supports HTML pages, CSS, JS, and images
  • πŸ“¦ Automatically zips downloaded content
  • πŸ›‘οΈ File size and page limits for safe usage
  • 🧹 Auto-deletes files after 3 minutes for privacy
  • βœ… Simple /start, /help, and /status commands

βš™οΈ Installation

  1. Clone the repository
    git clone https://github.com/Ahmed-GoCode/site2zip.git
    
    cd site2zip
    
    

  1. Install dependencies
pip install -r requirements.txt

  1. Set up your Telegram Bot Token

Get your token from @BotFather

Add it to your environment:

export BOT_TOKEN="your_telegram_bot_token"

  1. run the bot
python main.py

πŸ“– Usage

/start β†’ Show welcome message

/help β†’ Display help instructions

/status β†’ Check download progress

Send any valid URL β†’ Bot downloads the website, zips it, and sends it back


⚑ Limits

Max 20 pages per download

Max 50MB total site size

Max 5MB per file

Auto-deletes downloaded files after 3 minutes


πŸ“‚ Project Structure

site2zip/
β”œβ”€β”€ main.py              # Bot code
β”œβ”€β”€ requirements.txt     # Python dependencies
β”œβ”€β”€ README.md            # Project readme
└── LICENSE              # License file

πŸ› οΈ Built With

Python 3 🐍

python-telegram-bot πŸ€–

Requests 🌐

BeautifulSoup4 🍲


πŸ“œ License

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


p align="center"> Made with ❀️ by Ahmad

```

About

πŸ“¦ site2zip – A Telegram bot that turns any website into a downloadable ZIP file, fast and simple πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages