π¦ ClawHub
Youtube Description Autoposter
by @robj1925
Generate SEO-optimized YouTube timestamps from a YouTube URL or a raw transcript string, then optionally append them to the description of that specific vide...
π‘ Examples
Mode 1 β YouTube URL
Fetches the transcript from the video, generates SEO timestamps, and optionally appends them to the description of that specific video.# Generate only (view output)
python scripts/youtube_desc_generator.py --url "" ""Generate and post to that video
python scripts/youtube_desc_generator.py --url "" "" --post
Mode 2 β Raw Transcript Text
Reads a raw transcript string, generates SEO timestamps, and optionally appends them to the description of your latest YouTube upload.
# Generate only (view output)
python scripts/youtube_desc_generator.py --transcript "0:00 Welcome..." ""Generate and post to latest video
python scripts/youtube_desc_generator.py --transcript "0:00 Welcome..." "" --post
Mode 3 β Latest Video
Automatically fetches your most recent video, checks if timestamps already exist (to prevent duplicates), downloads the transcript, generates SEO timestamps, and optionally appends them to the description.# Generate and post timestamps for your latest video (if they don't already exist)
python scripts/youtube_desc_generator.py --latest "" --post
Examples:
python scripts/youtube_desc_generator.py --url "https://youtu.be/abc123" "$GEMINI_API_KEY"
python scripts/youtube_desc_generator.py --url "https://youtu.be/abc123" "$GEMINI_API_KEY" --post
python scripts/youtube_desc_generator.py --transcript "0:00 Welcome..." "$GEMINI_API_KEY" --post
π Tips & Best Practices
No transcript available (URL mode):
--transcript mode with a manually prepared transcript stringTranscript text not loading (transcript mode):
MM:SS text formatGemini API errors:
gemini-3.1-flash-lite-preview--post not updating the video:
credentials.json is in the scripts/ directorytoken.pickle and re-authenticate if credentials have expiredWrong video appended to in transcript mode:
--url mode insteadTERMINAL
clawhub install yt-timestamp-autoposter