Note: This script uses the OpenAI API. To configure the script's OpenAI functionality, you should configure OpenAI API key of two of the possible ways:
# save api key to `~/.config/openai.token` file
echo "YOUR_OPENAI_API_KEY" > ~/.config/openai.token
OPENAI_API_KEY="YOUR_OPENAI_API_KEY" poetry run ./yt_insight_generator.py --source="https://www.youtube.com/watch?v=JpviQnH3Hdw" --destination=article.md --author="Jean-Pierre Chauvel" -t cat siamese
- Install poetry
pip install poetry
- Install the project dependencies
poetry install
- Run the script's help
poetry run ./yt_insight_generator.py --help