Download any website as a ZIP archive directly from Telegram π
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.
- π 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/statuscommands
- Clone the repository
git clone https://github.com/Ahmed-GoCode/site2zip.git cd site2zip
- Install dependencies
pip install -r requirements.txt- Set up your Telegram Bot Token
Get your token from @BotFather
Add it to your environment:
export BOT_TOKEN="your_telegram_bot_token"- 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
```