2023-11-22 — 2024-12-13

No time to watch YouTube videos? This handy Python script leverages Whisper for audio transcription and GPT-4 for summarization, making it easy to get the gist of any video quickly. Dive in to learn how to set it up and start summarizing today!

No time to watch?

Here’s a small Python script to summarise YouTube videos. It uses Whisper to transcribe the audio and GPT-4 to make a summary.

How to use

Pre-requisites

  1. Have Python installed
  2. Have an API key from OpenAI

Installation

  1. Get the script
  2. Install the required libraries: pip install pytube openai
  3. Open summarise_youtube.py in a text editor and replace <YOUR OPENAI KEY HERE> by your actual OpenAI key

Usage

  1. In a console, do python summarise_youtube.py
  2. Enter the URL & wait
  3. A tab should open automatically, if it doesn’t, open manually video_summary.html