An AI-powered YouTube video summarizer built with Python, Streamlit, and Google Gemini. Paste a YouTube video URL and instantly get concise summaries in multiple formats.
-
📄 Summarize any YouTube video with transcripts enabled.
-
📝 Multiple summary styles:
- Bullet Points
- Time Stamped
- Detailed Notes
- Study Notes
- ELI5
- Blog Post
-
🧩 Automatic chunking for long videos.
-
⚡ Streamlit caching for faster repeated summaries.
-
📥 Download summaries as Markdown files.
-
🚨 Proper error handling for missing or disabled transcripts.
- Python
- Streamlit
- Google Gemini API
- youtube-transcript-api
- python-dotenv
yt_summarizer/
│
├── ui.py # Streamlit interface
├── summarizer.py # Core summarization logic
├── requirements.txt
├── .env
├── .gitignore
├── README.md
└── TO_BE_IMPLEMENTED.md
git clone https://github.com/<your-username>/yt_summarizer.git
cd yt_summarizerpython -m venv venvActivate the environment:
venv\Scripts\activatesource venv/bin/activatepip install -r requirements.txtCreate a .env file:
GEMINI_API_KEY=your_api_key_hereGet a Gemini API key from Google AI Studio.
streamlit run ui.pyThen open:
http://localhost:8501
| Style | Description |
|---|---|
| Bullet Points | Quick overview |
| Time Stamped | Topic-wise summary with timestamps |
| Detailed Notes | Detailed explanation |
| Study Notes | Revision-friendly notes |
| ELI5 | Simplified explanation |
| Blog Post | Blog/article format |
https://www.youtube.com/watch?v=xxxxxxxx
# Summary
## Introduction
- Topic overview
## Main Concepts
- Key point 1
- Key point 2
## Conclusion
- Final takeaway- Videos must have transcripts available.
- Videos with disabled transcripts are unsupported.
- Playlist summarization is not implemented yet.
- Only Markdown export is currently supported.
- Playlist summarization
- Chapter-wise summaries
- PDF and DOCX export
- Flashcard generation
- Quiz generation
- Learning roadmap
- Code snippet extraction
- Key takeaways
- Semantic search using embeddings
- Chat with videos (RAG)
- Timestamp search
- Video metadata display
- Video and audio download using yt-dlp
See TO_BE_IMPLEMENTED.md for the complete roadmap.
streamlit
google-genai
youtube-transcript-api
python-dotenv
This project is licensed under the MIT License.
Built with ❤️ using Python and Gemini.