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
-
Install Python 3.7 or higher if not already installed
- Download from Python.org
- Make sure to check "Add Python to PATH" during installation
-
Clone this repository:
git clone git@github.com:ahache/youtube-summary.git cd youtube-summary
-
Install dependencies:
pip install -r requirements.txt
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:
- Extract the transcript from the video
- Save it to a text file in the
transcripts
folder, named after the video title - Include an AI summarization prompt at the top of the file
You can then:
- Find your transcript in the
transcripts
folder - Open the generated .txt file
- Copy its contents into ChatGPT, Claude, or your preferred LLM
- The AI will provide a concise 3-4 paragraph summary of the video content