Skip to content

A CLI app to get a youtube video summary from a youtube url

License

Notifications You must be signed in to change notification settings

mmaorc/youtube-summary-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Summary CLI

A simple CLI tool that summarizes YouTube videos. This tool is designed to help users quickly understand the main points of a video without having to watch the entire content. It uses AI to generate a concise summary of the video's transcript.

Screenshot

The timestamps are also clickable, try them 🙂

Usage

Installation

You can install the application using pip or pipx:

pip install --user youtube-summary
pipx install youtube-summary

You can also compile directly from source:

git clone https://github.com/mmaorc/youtube-summary-cli
cd youtube-summary-cli
python setup.py install --user

Run

Prior to running the script, ensure that the OPENAI_API_KEY environment variable is set up correctly.

To summarize the transcript of a YouTube video, run the app with the video URL as an argument:

youtube-summary "https://www.youtube.com/watch?v=your_video_id"

Replace your_video_id with the actual video ID.

Note that generating a summary might take a couple of minutes, depending on the video's transcript length.

Development

For development purposes, clone the repository, navigate to the project directory, and install in a virtual environment:

git clone https://github.com/mmaorc/youtube-summary-cli
cd youtube-summary-cli
python -m venv .env
source .env/bin/activate  # On Windows use `.env\Scripts\activate`
pip install --editable .

Ensure that the OPENAI_API_KEY environment variable is set up correctly.

Now you can run it:

python -m youtube_summary "https://www.youtube.com/watch?v=your_video_id"

Replace your_video_id with the actual video ID.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact Me

You can find me on Twitter.

About

A CLI app to get a youtube video summary from a youtube url

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages