The Airtable Video Recommendations app collects YouTube channel stats, identifies best-performing videos, and uses OpenAI to generate video title recommendations based on the best-performing titles.
-
Clone the repository.
-
Set up environment variables in a
.env
file in the root directory. See .env.example for more information. -
Install the necessary packages using
pip install -r requirements.txt
.
-
google_api_python_client
: Google API client library. -
isodate
: Date-time utilities. -
openai
: OpenAI GPT-3 API client library. -
pyairtable
: Airtable Python client. -
python-dotenv
: Python dotenv library.
Identifies and stores the best-performing videos from a given YouTube channel into Airtable.
generate()
: Collects the best-performing videos for all channels in the Airtable and updates the respective records.
Generates video title recommendations using OpenAI based on the best-performing titles.
generate()
: Retrieves the best-performing video titles from Airtable and uses OpenAI to generate new video title recommendations.
Collects and updates YouTube channel stats in Airtable.
generate()
: Collects statistics for YouTube channels listed in the Airtable and updates the respective records.
Main execution script which combines the functionalities of other modules to provide the complete workflow.
-
Execute
main.py
to start the process. -
The script will update YouTube channel stats in the Airtable, identify best-performing videos, and generate new video title recommendations.