A web application that downloads YouTube video transcripts and generates detailed summaries using AI.
- Download transcripts from YouTube videos
- Generate comprehensive summaries with AI
- Modern web interface
- Option to force new summaries
- Structured output format with Summary, Highlights, Key Insights, and Conclusion
Below are some screenshots demonstrating the YouTube Transcript Summarizer in action:
- Clone the repository:
git clone <repository-url>
cd youtube-transcript
- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows, use: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file in the root directory and add your Gemini API key:
GEMINI_API_KEY=your_api_key_here
- Start the Flask application:
python app.py
-
Open your web browser and navigate to
http://localhost:5000
-
Enter a YouTube URL and click "Generate Summary"
-
Wait for the summary to be generated and displayed on the page
app.py
- Main Flask applicationserver.py
- Core transcript downloading and summarization logictemplates/
- HTML templatestranscripts/
- Downloaded transcriptssummaries/
- Generated summaries
- The application creates two directories:
transcripts/
andsummaries/
to store the downloaded transcripts and generated summaries - You can force a new summary by checking the "Force new summary" checkbox
- The summary format includes: Summary, Highlights, Key Insights, and Conclusion sections