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.
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ec1f08bb50315d1ba9c6f0b12966ecabd5d840906dbce949737f0709a671577 |
|
MD5 | b51445c694674f740e0b4034264d08a6 |
|
BLAKE2b-256 | 82ca097f217e5677a982386943a3cf79ddb19f5221b9cac7feeab9755b0b4e03 |
File details
Details for the file youtube_summary-0.5-py3-none-any.whl
.
File metadata
- Download URL: youtube_summary-0.5-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2de8e189b473f6df16cdfbd5b362904c3e1cee73985780715488a5e05aa24f6a |
|
MD5 | 6a18e585c3fe229fabeaca99bc54684b |
|
BLAKE2b-256 | 65bbcf0de287a87793ee883343a0a6226856939d9dd47f7b63c5d0280fe3d3dc |