gpericol / TubeDigest

"TubeDigest": Digest the vast world of YouTube content effortlessly with TubeDigest. This innovative software uses OpenAI's cutting-edge technology to distil the essence of any video into a readable summary. No more missing out on content - get TubeDigest and get to the heart of your videos in no time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TubeDigest

TubeDigest is a Python program that transforms YouTube videos into concise, digestible summaries. It utilizes YouTube's API and various text summarization techniques to generate summaries based on video subtitles.

Requirements

  • Python 3
  • Dependencies: youtube_transcript_api, openai, tiktoken

Installation

  1. Clone this repository: git clone https://github.com/gpericol/TubeDigest
  2. Install the required dependencies: pip install -r requirements.txt
  3. Rename config.py to config_real.py

Usage

  1. Ensure you have obtained the necessary API key from Google Cloud Console and replace the placeholder api_key in the config_real.py file with your actual API key.

  2. Run the program by executing the following command:

python tube_digest.py <video_url_or_code> [-f] [-d]

  • <video_url_or_code>: The URL or code of the YouTube video for which you want to generate a summary.
  • -f or --force (optional): Download the subtitles and create summaries even if they are already present in the database, overwriting them.
  • -d or --delete (optional): Remove the data related to the video from the database.
  1. The program will create a summary of the video and store it in the database. If the subtitles and summaries already exist in the database, the program will output the path to the existing summary file. If the -f flag is provided, the program will overwrite the existing data with new subtitles and summaries.

  2. The generated summaries are stored in the database along with additional information about the video.

LICENCE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or(at your option) any later version.

About

"TubeDigest": Digest the vast world of YouTube content effortlessly with TubeDigest. This innovative software uses OpenAI's cutting-edge technology to distil the essence of any video into a readable summary. No more missing out on content - get TubeDigest and get to the heart of your videos in no time.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%