Skip to content

Generate YouTube Shorts Video From an Article Link using Pydantic AI

Notifications You must be signed in to change notification settings

GreatHayat/yt-shorts-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Shorts Generator

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.

Prerequisites

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

Setup Instructions

  1. Create and Activate a Virtual Environment

    python3 -m venv venv
    source venv/bin/activate
  2. Add Your Article Link

    • Open the crawler.py file.
    • Insert your desired article link in the main method.
  3. Run the Script

    python3 crawler.py

How It Works

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.

Sample Output

Below is a sample output of the generated YouTube Short:

output_video.mp4

Releases

No releases published

Packages

No packages published

Languages