This utility:
- downloads the transcript of any Youtube video
- uses OpenAI's API to summarize and extract key points from the video
- saves everything in a local file in markdown format
You need an OpenAI API key and Python v3.
# create and activate a virtual env
python -m venv venv
source venv/bin/activate
# clone this repository
git clone https://github.com/code-runner-2017/youtube-transcript-openai.git
cd youtube-transcript-openai
# install dependencies
pip install -r requirements.txt
cp .env.example .env
# customize your .env file with your API KEY, adjust prompts, etc.
python main.py "http://youtube.com/...."
python main.py # will prompt for the Youtube link
Wait a few seconds and you'll get the output file under the output/ folder.
If you find this simple project useful, please give me a star on github or buy me a coffee. Thank you!
