Skip to content

A web application that downloads YouTube video transcripts and generates detailed summaries using AI.

Notifications You must be signed in to change notification settings

fjchng/youtube-transcript

Repository files navigation

YouTube Transcript Summarizer

A web application that downloads YouTube video transcripts and generates detailed summaries using AI.

Features

  • 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

Screenshots

Below are some screenshots demonstrating the YouTube Transcript Summarizer in action:

1. Main Page - Enter YouTube URL

Main Page - Enter YouTube URL

2. Generated Summaries Gallery

Generated Summaries Gallery

3. Detailed Summary View

Detailed Summary View

Setup

  1. Clone the repository:
git clone <repository-url>
cd youtube-transcript
  1. Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate  # On Windows, use: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the root directory and add your Gemini API key:
GEMINI_API_KEY=your_api_key_here

Usage

  1. Start the Flask application:
python app.py
  1. Open your web browser and navigate to http://localhost:5000

  2. Enter a YouTube URL and click "Generate Summary"

  3. Wait for the summary to be generated and displayed on the page

Directory Structure

  • app.py - Main Flask application
  • server.py - Core transcript downloading and summarization logic
  • templates/ - HTML templates
  • transcripts/ - Downloaded transcripts
  • summaries/ - Generated summaries

Notes

  • The application creates two directories: transcripts/ and summaries/ 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

About

A web application that downloads YouTube video transcripts and generates detailed summaries using AI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published