Raphaƫl Kanapitsas

No time to watch?

Created: 22nd of November, 2023

Updated: 8th of May

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