YouTube Short Generator

Gib hier deine Überschrift ein

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Process

  1. Choose post from Redit

Actions

  1. Grab top posts for 24 hours
    1. Open a web browser
    2. Send a HTTP request to the Reddit server
    3. Parse server answers in HTML format or receive the clear information as JSON file (data is listed as key-value pair)  through API
      1. Use the PRAW library to ask requests as a method
      2. Set up an API application (register on Reddit)
  2. Create voice over
    1. Use pyttsx3 or gtts or OpenAI
    2. Generate audio file
  3. Capture screenshots of posts
    1. Use selenium
    2. Open web browser
    3. Identify the parts of the screen to take pictures of (youse developer view to identify the specific parts)
    4. Save screenshots as .png-files
  4. Edit content together
    1. Use moviepy (library)
    2. Create image clip object
    3. Create audio clip object out of voice over file
    4. Repeat for all comments
    5. Add clips together
    6. Add background videos
      1. Create a video data base
      2. Randomly choose a video
      3. Import the video as a video clip object
      4. composite background and main clips
    7. Edit Video
    8. Specify the output file (location)
    9. Render the video
  5.  Upload to platform
    1. Use YouTube API or use selenium
      1. Navigate to youtube.com
      2. Sign in
      3. Click upload button
      4. Select the file
      5. Click the title box
      6. Send the title as keys
      7. Find the „Made for kids“ option
      8. Select appropriate input
      9. Click description input
      10. Input the descriptions
      11. Click the next button
      12. Set visibility to „Public“
      13. Click „Publish“
  6.  

Gib hier deine Überschrift ein

from openai import OpenAI

client = OpenAI()

response = client.chat.completions.create(
model = " gpt-3.5-turbo",
messages = [
{
"role":"system",

"content": "You are a YouTube short narration generator."
},
{
"role": user",
"content": f"Create a YouTube short narration based on the following source material: \n\n
{source_material}"
}
]
)

print(response.choices[0].message.content)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Sources

Kommentar verfassen

Nach oben scrollen