This tool transforms YouTube videos into concise text summaries using the youtube-transcript-api
for transcript retrieval and GPT-4o-mini for summarization.
Utilize youtube-transcript-api
and openai
Python libraries to:
- Retrieve Transcript: Extract text transcripts from YouTube videos using
youtube-transcript-api
. - Summarize Text: Generate summaries with GPT-4o-mini, offering options for different summary lengths: short, medium, long, or extra long.
-
Set Up: Install required libraries with pip:
pip install -r requirements.txt
-
Get Started: Clone the repository with the Jupyter Notebook.
-
Launch Notebook: Open
YoutubeScript.ipynb
in Jupyter. -
Run Notebook: Input the YouTube URL and select the desired summary length.
-
Review Summary: Access the final summary in
summary.txt
.
To use the Telegram bot that generates text summaries from YouTube URLs:
- Visit YT_SummaryBot on Telegram.
- Send the command
/summarize
to the bot. - Choose the summary length (short, medium, long, or extra long).
- Reply with the YouTube URL.
- Receive the text summary.
To run the Telegram bot:
- Navigate to the
telegram
directory. - Run
UserHandler.py
to start the bot.
- youtube-transcript-api: YouTube transcript retrieval.
- OpenAI: GPT-4o-mini for summarization.