This script uses the OpenAI API to generate metadata for YouTube videos based on a provided video transcript. It outputs a title, a description, and hashtags.
- Uses OpenAI's GPT model to generate YouTube metadata.
- Outputs the generated metadata in the console.
- Saves the metadata to an XLSX file for easy reference.
- Make sure you have the required libraries installed. They can be installed using the
requirements.txt
file. - Set up the
config.json
file with your OpenAI API key and desired configuration. - Create a virtual env
python -m venv venv
- Install requirements.txt
pip install -r requirements.txt
- Run the script using the command:
python main.py [input_folder] [output.xlsx] [language]
Ensure that the provided config.json
is set up correctly. The OpenAI API key is mandatory.