Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

youtube-summary-0.5.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

youtube_summary-0.5-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file youtube-summary-0.5.tar.gz.

File metadata

  • Download URL: youtube-summary-0.5.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for youtube-summary-0.5.tar.gz
Algorithm Hash digest
SHA256 8ec1f08bb50315d1ba9c6f0b12966ecabd5d840906dbce949737f0709a671577
MD5 b51445c694674f740e0b4034264d08a6
BLAKE2b-256 82ca097f217e5677a982386943a3cf79ddb19f5221b9cac7feeab9755b0b4e03

See more details on using hashes here.

File details

Details for the file youtube_summary-0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for youtube_summary-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2de8e189b473f6df16cdfbd5b362904c3e1cee73985780715488a5e05aa24f6a
MD5 6a18e585c3fe229fabeaca99bc54684b
BLAKE2b-256 65bbcf0de287a87793ee883343a0a6226856939d9dd47f7b63c5d0280fe3d3dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page