๐ฌ 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
-
Clone the repository:
git clone https://github.com/Harshit-shrivastav/Youtube-Summarizer-Bot.git cd Youtube-Summarizer-Bot -
Install the required dependencies:
pip install -r requirements.txt -
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
-
Start the bot:
python3 main.py -
Open Telegram and start a chat with your bot.
-
Send the
/startcommand to get started. -
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
- Telethon - Telegram client library.
- Pytube - YouTube video downloader.
- SpeechRecognition - Library for performing speech recognition.
- Gemini AI - GenAI Api for summarization
๐ฌ Contact
For any queries, reach out at telegram.
Enjoy summarizing! ๐
๐ Follow me
Your follow is like a virtual high-five. Thanks!