← 返回
内容创作 中文

AI Hookbot

Scrape viral hooks from YouTube Shorts creators and stitch them with a CTA video to produce ready-to-post TikTok/Reels/Shorts content. Use when asked to make...
抓取YouTube Shorts爆款钩子,拼接CTA视频,生成可直接发布的TikTok/Reels/Shorts内容。用于制作...
jean-maradiaga
内容创作 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 660
下载
💾 9
安装
1
版本
#latest

概述

AI Hookbot

Runs the Hookbot pipeline: scrapes YouTube Shorts hooks from a creator's channel, trims them, and stitches each with your CTA video to produce ready-to-post vertical content.

Setup

1. Install dependencies

pip install yt-dlp
brew install ffmpeg   # macOS; or apt install ffmpeg on Linux

2. Clone the pipeline scripts

git clone https://github.com/YOUR_REPO/hookbot-scripts ~/hookbot

> Or place pipeline.py and related scripts in any directory — just set HOOKBOT_SCRIPTS_DIR below.

3. Configure environment variables

Copy config.example.env, fill in your paths, and either source it or add it to your shell profile:

cp config.example.env ~/.hookbot.env
# edit ~/.hookbot.env
source ~/.hookbot.env
VariableDescriptionDefault
---------
HOOKBOT_SCRIPTS_DIRDirectory containing pipeline.py~/hookbot
HOOKBOT_CTA_DIRDefault folder to look for CTA videos~/hookbot/cta
HOOKBOT_YTDLP_PATHPath to yt-dlp binaryyt-dlp (assumes in PATH)
HOOKBOT_FFMPEG_PATHPath to ffmpeg binaryffmpeg (assumes in PATH)
YOUTUBE_API_KEYYouTube Data API v3 key (only needed for --viral)_(optional)_

Workflow

  1. Parse the user's request to extract:
    • creator_url — YouTube Shorts URL (e.g. https://www.youtube.com/@ZackD/shorts). If only a handle/name is given, construct the URL.
    • cta_video — Path to CTA video. If only a filename is given, resolve against $HOOKBOT_CTA_DIR. If not specified, prompt the user.
    • count — Number of hooks (default: 10)
    • hook_duration — Seconds to grab from each hook (default: 3.0)
    • output_dir — Where to save final videos (default: ./output relative to $HOOKBOT_SCRIPTS_DIR)
  1. Resolve paths from environment variables (fall back to defaults if unset):
SCRIPTS_DIR="${HOOKBOT_SCRIPTS_DIR:-~/hookbot}"
CTA_DIR="${HOOKBOT_CTA_DIR:-~/hookbot/cta}"
YTDLP="${HOOKBOT_YTDLP_PATH:-yt-dlp}"
FFMPEG="${HOOKBOT_FFMPEG_PATH:-ffmpeg}"
  1. Run the pipeline via exec, passing only the required env vars explicitly (do NOT source ~/.zshrc or any shell RC file):
cd "$SCRIPTS_DIR" && \
YTDLP_PATH="$YTDLP" \
FFMPEG_PATH="$FFMPEG" \
YOUTUBE_API_KEY="${YOUTUBE_API_KEY:-}" \
python3 pipeline.py "<creator_url>" "<cta_video>" \
  --count <count> \
  --hook-duration <hook_duration> \
  --output <output_dir> \
  [--viral]

Add --viral when the user wants hooks sorted by view count (requires YOUTUBE_API_KEY). Default pulls most recent Shorts.

  1. Report back a summary:
    • How many hooks were scraped
    • How many final videos were created
    • Output directory path
    • Any failures (sanitize error output before relaying — strip file paths and env var values)

Prompting for Missing Info

  • CTA video not specified: Ask "Which CTA video should I use?" then list .mp4 files in $HOOKBOT_CTA_DIR.
  • Creator not specified: Ask for the YouTube channel handle or Shorts URL.
  • HOOKBOT_SCRIPTS_DIR not set / pipeline.py not found: Tell the user to set the env var and point it to the scripts directory.

Example Invocations

  • "Make me 10 hooks from @ZackD with MyCTA.mp4"
  • "Scrape 5 hooks from youtube.com/@SomeCreator/shorts using my furniture CTA"
  • "Run hookbot on @MrBeast, 3 second hooks, 15 videos, viral sort"
  • "Make hooks from @PeterMcKinnon"

Notes

  • Output videos are 9:16 vertical (1080×1920), normalized automatically.
  • Temp files are cleaned up automatically by the pipeline.
  • A manifest.json is saved in the output directory with metadata.
  • If the pipeline errors, relay the error output to the user verbatim so they can debug.
  • --viral flag requires a YouTube Data API v3 key set as YOUTUBE_API_KEY. Get one at console.cloud.google.com.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-19 09:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,854
content-creation

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,075
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,203