๐ŸŽฌ YouTube Video Summarizer Bot

August 5, 2025 ยท View on GitHub

Welcome to the YouTube Video Summarizer Bot! This bot helps you to get a quick summary of any YouTube video by simply sending a link. It uses advanced AI technologies to transcribe and summarize the content for you.

๐Ÿš€ Features

  • ๐ŸŽฅ YouTube Link Handling: Just send a YouTube link to the bot.

  • ๐Ÿ“œ Automatic Captions: If the video has captions, it will use them to generate the summary.

  • ๐ŸŽง Audio Transcription: If no captions are available, it will download the audio and transcribe it.

  • ๐Ÿ“ Text Summarization: Summarizes the transcribed text using advanced AI models.

  • ๐Ÿค– Easy to Use: Simple commands to interact with the bot.

  • OpenAI Compatible: Use any OpenAI Compatible model.

๐Ÿ†“ If you want a free bot hosting checkout this article here:

https://github.com/Harshit-shrivastav/Free-Telegram-bot-hosting

๐Ÿ”ง Installation

โญ Star the Repo

  1. Clone the repository:

    git clone https://github.com/Harshit-shrivastav/Youtube-Summarizer-Bot.git
    cd Youtube-Summarizer-Bot
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    
  3. Get Free Redis URI and Password from Redis or Upstash

  4. Set up environment variables:

    export BOT_TOKEN='your_telegram_bot_token'
    export AI_API_KEY='google-genai_api_key' #optional
    export AUTH_USER_ID='your_telegram_user_id'
    export REDIS_HOST='your_redis_host' # optional 
    export REDIS_PORT='your_redis_port' #optional
    export REDIS_PASSWORD='your_redis_password' #optional 
    

You can get Google-genai API key from here - GOOGLE_API_KEY


๐Ÿ› ๏ธ Usage

  1. Start the bot:

    python3 main.py
    
  2. Open Telegram and start a chat with your bot.

  3. Send the /start command to get started.

  4. Send any YouTube link to get a summarized text of the video content.

๐Ÿค Contributing

Contributions are welcome! Please fork this repository and submit a pull request for any improvements or bug fixes.

๐Ÿ“„ License

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

๐ŸŽ‰ Acknowledgements

๐Ÿ“ฌ Contact

For any queries, reach out at telegram.

Enjoy summarizing! ๐Ÿš€

๐Ÿ˜Š Follow me

Your follow is like a virtual high-five. Thanks!