Skip to content

πŸ€– A Telegram bot to download YouTube playlists or videos as MP3 (audio) or MP4 (video), zipped and delivered directly in chat. Built with Python, yt-dlp, and python-telegram-bot.

Notifications You must be signed in to change notification settings

Chaos-19/ytv_downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“₯ YouTube Playlist Downloader Bot

A Telegram bot that helps you easily download entire YouTube playlists in audio (MP3) or video (MP4) format, bundled neatly into a ZIP file.
Built using Python, python-telegram-bot, and yt-dlp.


✨ Features

  • Download entire YouTube playlists or single videos.
  • Choose between audio (MP3) and video (MP4).
  • Files are zipped and sent directly in chat.
  • Lightweight and easy to deploy.
  • Uses in-memory temporary data (no external database required).

πŸ“¦ Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/chaos-19-ytv_downloader.git
    cd chaos-19-ytv_downloader
    
  2. Install dependencies:

    pip install -r requirements.txt
  3. Create and configure .env:

    BOT_TOKEN=your_telegram_bot_token_here
    
  4. Run the bot:

    python bot.py

πŸš€ Usage

  1. Start the bot on Telegram: /start

  2. Send a YouTube playlist URL or a video URL.

  3. Choose your preferred format:

    • 🎡 Audio (MP3)
    • πŸ“Ή Video (MP4)
  4. Receive a ZIP file containing the downloaded media.


πŸ—‚ Project Structure

chaos-19-ytv_downloader/
β”œβ”€β”€ bot.py                   # Main bot runner and handler setup
β”œβ”€β”€ config.py                # Reserved for future configuration
β”œβ”€β”€ requirements.txt         # Python dependencies
β”œβ”€β”€ README.md                # Project documentation
β”œβ”€β”€ database/
β”‚   └── db.py                # In-memory temporary data storage
β”œβ”€β”€ handlers/                # Telegram command & callback handlers
β”‚   β”œβ”€β”€ downloader.py
β”‚   β”œβ”€β”€ start.py
β”‚   β”œβ”€β”€ help.py
β”‚   β”œβ”€β”€ fetch_metadata.py
β”‚   β”œβ”€β”€ echo.py
β”‚   └── error.py
└── services/                # Downloading, zipping, and utility services
    β”œβ”€β”€ youtube.py
    β”œβ”€β”€ utils.py
    └── __init__.py

βš™οΈ Technologies Used


πŸ“„ License

This project is licensed under the MIT License.


πŸ™Œ Contributing

Pull requests, suggestions, and issues are welcome! Feel free to open an issue or submit a PR.


πŸ“« Contact

If you'd like to reach out: Chaos – [email protected]


Happy downloading! πŸŽ‰

About

πŸ€– A Telegram bot to download YouTube playlists or videos as MP3 (audio) or MP4 (video), zipped and delivered directly in chat. Built with Python, yt-dlp, and python-telegram-bot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages