Skip to content

ahache/youtube-summary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Video Summary

This tool extracts transcripts from YouTube videos and saves them to text files along with an AI summarization prompt.

You can paste the contents of the text file into your favorite LLM to get a summary of the video.

Please open an issue if it's not working

Setup Instructions

  1. Install Python 3.7 or higher if not already installed

    • Download from Python.org
    • Make sure to check "Add Python to PATH" during installation
  2. Clone this repository:

    git clone git@github.com:ahache/youtube-summary.git
    cd youtube-summary
  3. Install dependencies:

    pip install -r requirements.txt

Usage

Run the script with a YouTube video URL or ID:

python main.py <youtube-url-or-id>

Example:

python main.py dQw4w9WgXcQ
# or
python main.py https://www.youtube.com/watch?v=dQw4w9WgXcQ

The script will:

  1. Extract the transcript from the video
  2. Save it to a text file in the transcripts folder, named after the video title
  3. Include an AI summarization prompt at the top of the file

You can then:

  1. Find your transcript in the transcripts folder
  2. Open the generated .txt file
  3. Copy its contents into ChatGPT, Claude, or your preferred LLM
  4. The AI will provide a concise 3-4 paragraph summary of the video content

About

YouTube Video Transcript with Summary Prompt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages