YTRecap (https://ytrecap.org) is a web application that uses the YouTube Data API to retrieve the closed captions of a YouTube video, and then passes them to an AI model to generate a summary of the video content. The application is built using Python Flask
ytrecapgif.2.mov
To use the YT-Recap application, follow these steps:
-
Clone the repository:
git clone https://github.com/nicktill/YTRecap.git
-
Set up virtual environment:
cd yt-recap python3 -m venv venv source venv/bin/activate (macOS/Linux) venv\Scripts\activate (Windows)
-
Install required packages:
pip install -r requirements.txt
-
Set up environment variables: Create a file named
.env
in the/src
directory of the repo to store your YouTube API key and OpenAI API key. The structure should be as follows:YT_KEY='YOUR_YOUTUBE_API_KEY' OPENAI_KEY='YOUR_OPENAI_API_KEY'
-
Run the application:
cd src python3 app.py