Generate YouTube Shorts effortlessly from any given article link using the power of Pydantic AI
, Crawl4 AI
, and the DALLE 3
model for image generation.
To use this project, you must have the following API keys:
- OpenAI API Key
- Deepgram API Key
Set your API keys as environment variables:
export OPENAI_API_KEY=your_openai_api_key
export DEEPGRAM_API_KEY=your_deepgram_api_key
-
Create and Activate a Virtual Environment
python3 -m venv venv source venv/bin/activate
-
Add Your Article Link
- Open the
crawler.py
file. - Insert your desired article link in the
main
method.
- Open the
-
Run the Script
python3 crawler.py
The script extracts information from the provided article link and processes it using AI to generate engaging YouTube Shorts content. The DALLE 3
model is utilized to generate visually compelling images, while OpenAI and Deepgram services handle other processing tasks. Ensure your API keys are correctly configured to enable these integrations.
Below is a sample output of the generated YouTube Short: