Skip to content

contributions: youtube shorts ideas generator from transcript - #3788

Open
bearnithi wants to merge 2 commits into
ed-donner:mainfrom
bearnithi:contributions/bearnithi
Open

contributions: youtube shorts ideas generator from transcript#3788
bearnithi wants to merge 2 commits into
ed-donner:mainfrom
bearnithi:contributions/bearnithi

Conversation

@bearnithi

Copy link
Copy Markdown

Adds a Week 1–style community notebook that turns a long-form YouTube video into Shorts ideas.

Paste a video URL; the notebook pulls the transcript with youtube-transcript-api, then asks OpenAI (gpt-5) for five Shorts concepts. Each idea includes a description and start/end times from the original transcript so you can jump to the clip.

What it does

  1. Install youtube-transcript-api
  2. Parse the video ID from a watch?v= URL and fetch the transcript
  3. Send the transcript with a system prompt that asks for 5 unique, relevant Shorts ideas as JSON
  4. Render the model’s JSON as Markdown

Expected shape per idea:

  • idea
  • description
  • original_transcript_start_time
  • original_transcript_end_time

How to run

  1. Set OPENAI_API_KEY in the environment
  2. Open community-contributions/yt-shorts-ideas-by-bearnithi/shorts.ipynb
  3. Run all cells (installs the transcript package)
  4. Optional: change video_url in Step 3 to another https://www.youtube.com/watch?v=... link

…instructions, improved formatting, and detailed steps for fetching transcripts and generating Shorts ideas from video URLs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant