GithubHelp home page GithubHelp logo

gdcho / vc_aggregator Goto Github PK

View Code? Open in Web Editor NEW
25.0 1.0 4.0 105.24 MB

Generate engaging video content utilizing the YouTube API, OpenAI API, and MoviePy. Harness the power of AI and Python automation to craft dynamic YouTube Shorts ๐ŸŽฌ

Home Page: https://www.youtube.com/@QuickUniqueFacts

License: MIT License

Python 100.00%
googlecloudplatform moviepy openai-api youtube-api-v3 pexels-api ffmpeg artificial-intelligence automation

vc_aggregator's Introduction

Table of Contents
  1. Technology used
  2. Getting started
  3. File Contents of folder
  4. Learn More
  5. References

Logo

Video Content Aggregator

Video Content Generator with YouTube API, OpenAI API, and MoviePy. Create dynamic video content with a vc aggregator.
Explore the docs ยป

View Clips ยท Report Bug ยท Request Feature

Technology used

Python Badge OpenAI API YouTube API Pexel API Google Cloud Platform MoviePy FFmpeg Google Auth

Getting Started

  1. Clone the repo

    git clone https://github.com/gdcho/algo_v
  2. Obtain API keys from YouTube, OpenAI, and Pexels and save them in .env file

  3. Install Python requirements

    pip install -r requirements.txt
  4. Obtain OAuth Client Secret from Google Cloud Platform and create yt_client_secret.json

  5. Run the python script

     python3 main.py

File Contents of folder

๐Ÿ“ฆ
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ __pycache__
โ”‚ย ย  โ”œโ”€โ”€ aggregate_fv2.cpython-311.pyc
โ”‚ย ย  โ””โ”€โ”€ upload_yt.cpython-311.pyc
โ”œโ”€โ”€ aggregate_fv2.py
โ”œโ”€โ”€ environment_variables.py
โ”œโ”€โ”€ img
โ”‚ย ย  โ”œโ”€โ”€ logo.png
โ”‚ย ย  โ””โ”€โ”€ vca.png
โ”œโ”€โ”€ main.py
โ”œโ”€โ”€ output_folder
โ”‚ย ย  โ””โ”€โ”€ note.txt
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ test_api
โ”‚ย ย  โ”œโ”€โ”€ gpt_prompt.py
โ”‚ย ย  โ””โ”€โ”€ youtube_video_data.py
โ”œโ”€โ”€ test_script
โ”‚ย ย  โ””โ”€โ”€ test_aggregate.py
โ”œโ”€โ”€ upload_yt.py
โ””โ”€โ”€ yt_client_secret.json

Learn More

To learn more about Python, take a look at the following resources:

To learn more about MoviePy, take a look at the following resources:

To learn more about the APIs, take a look at the following resources:

  • YouTube API - learn about YouTube API features and API.
  • OpenAI API - learn about OpenAI API features and API.
  • Pexels API - learn about Pexels API features and API.

To learn more about Google Cloud Platform, take a look at the following resources:

References

Python ยท MoviePy ยท YouTube API ยท OpenAI API ยท Google Cloud Platform ยท Pexels API

vc_aggregator's People

Contributors

gdcho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vc_aggregator's Issues

Setup Development Environment & Familiarization

๐Ÿš€ Welcome to VC Aggregator! ๐Ÿš€

To get started, you should set up your development environment and familiarize yourself with the core tools and libraries used, including the YouTube API, OpenAI API, and MoviePy.

๐Ÿ›  Objective

Your goal is to set up your local environment, run a basic script that integrates the APIs mentioned, and generate a short clip using MoviePy. This won't be a full-fledged YouTube Short but will give you a taste of the tools at play.

Steps to Completion

  1. Environment Setup
  • Clone the repo.
  • Navigate into the directory.
  • Install the required dependencies using pip install -r requirements.txt.
  1. API Key Configuration
  • Register for the YouTube API and retrieve your API key.
  • Register for the OpenAI API and get your API key.
  • Store these keys securely. I recommend using environment variables or a local configuration file (ignored by Git).
  1. Run the Sample Script
  • I've included a test_aggregate.py in the test_script directory. This script fetches a random YouTube video title, generates a basic caption using OpenAI, and creates a simple text video using MoviePy.
  • Run the script: test_aggregate.py.
  • If everything's set correctly, you should see an output video file in the test_script directory.
  1. Document & Share
  • If you encounter any setup issues, or if there are steps you believe could be clearer, note them down.
  • Share your feedback using repository issues. This can help us improve the onboarding process for future contributors.

๐Ÿ’ก Tips

Familiarize yourself with the basic documentation of YouTube API, OpenAI, and MoviePy. This will come in handy for future tasks. Ensure you're adhering to any rate limits set by the APIs.

๐Ÿ”’ Safety First

Never push your API keys or any sensitive data to the repo. Always use environment variables or a configuration file that's git-ignored to handle such details.

Once you've completed this task, reach out to me on my Github or LinkedIn. I am here to help and am excited to see your progress! Welcome again, and happy coding! ๐Ÿš€๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

API and Frameworks to use

  • Python
  • Selenium (pip install selenium)
  • Twitter API (pip install tweepy)
  • TikTok API (pip install tiktok-api)
  • YouTube API (pip install google-api-python-client)
  • MoviePy (pip install moviepy)
  • Text-to-speech library (pip install gtts)

Network Diagram

                    +-------------------+
                    |                   |
                    |   Your Python     |
                    |   Application     |
                    | (Video Generator) |
                    |                   |
                    +-------------------+
                               |
                               |
                               |
                               |
           +-------------------+-------------------+
           |                   |                   |
           |                   |                   |
           |                   |                   |
+----------v----------+  +-----v-----+       +-----v-------+
|                     |  |           |       |             |
|    Twitter API      |  | TikTok API|       | YouTube API |
|                     |  |           |       |             |
+---------------------+  +-----------+       +-------------+
           |                   |                   |
           |                   |                   |
           |                   |                   |
+----------v----------+  +-----v-----+       +-----v-----+
|                     |  |           |       |           |
|    Text Data        |  | Text Data |       | Video Data|
|    (Tweets)         |  | (Posts)   |       | (Videos)  |
|                     |  |           |       |           |
+---------------------+  +-----------+       +-----------+
           |                   |                   |
           |                   |                   |
           +-------------------+-------------------+
                               |
                               |
                               |
                    +----------v----------+
                    |                     |
                    |   Text-to-Speech    |
                    |   (TTS) Engine      |
                    |                     |
                    +---------------------+
                               |
                               |
                               |
                    +----------v----------+
                    |                     |
                    |    Voiceover        |
                    |    (Audio File)     |
                    |                     |
                    +---------------------+
                               |
                               |
                               |
                    +----------v----------+
                    |                     |
                    |     MoviePy         |
                    | (Video Editing)     |
                    |                     |
                    +---------------------+
                               |
                               |
                               |
                    +----------v----------+
                    |                     |
                    |   Final Video       |
                    |   Output            |
                    |                     |
                    +---------------------+

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.