Skip to content

Ahmadshahzad2/Youtube-Video-Summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

YouTube Video Summarizer

YouTube Video Summarizer is a Python script that takes a YouTube video URL as input and generates a summary of its content. It extracts the YouTube video ID, retrieves the video's transcript, stores the transcript as a document, and then uses a summarization algorithm to generate a concise summary of the video's content.

Installation

  1. Clone this repository to your local machine.
  2. Install the required Python packages by running the following command:

Usage

  1. Run the YouTube_Video_Summarizer.ipynb script and provide the YouTube video URL as an argument:

    (Replace "VIDEO_ID" with the actual YouTube video ID.)

  2. The script will extract the YouTube video ID, fetch the transcript, and store it as a text document.

  3. The script will then generate a summary of the video's content and display it on the console.

Environment setup

The script requires an active internet connection to access YouTube and retrieve the transcript. Make sure you have the required Python packages installed

  1. Python version=3.10
  2. openai
  3. langchain
  4. youtube-transcript-api(for Linux and MacOS)
  5. tiktoken
  6. openai key

Happy summarizing!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published