Install
openclaw skills install lovtrip-video2article视频转文章 / YouTube Video to Article — 使用 Gemini AI 将视频转为结构化文章。当用户需要将 YouTube 视频转换为文章时使用。
openclaw skills install lovtrip-video2articleLovTrip (lovtrip.app) — AI 驱动的旅行规划平台。视频转文章功能可将旅行 Vlog 自动转为图文攻略,发布到 LovTrip 攻略。
使用 Google Gemini 2.5 Pro 分析 YouTube 视频内容,自动生成结构化文章(标题 + 作者 + 摘要 + Markdown 正文)。
{
"mcpServers": {
"lovtrip": {
"command": "npx",
"args": ["-y", "lovtrip@latest", "mcp"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key"
}
}
}
}
无需安装完整 lovtrip,直接运行 scripts/video2article.mjs:
GEMINI_API_KEY=your-key node scripts/video2article.mjs "https://www.youtube.com/watch?v=VIDEO_ID"
video2article| 参数 | 类型 | 必需 | 说明 |
|---|---|---|---|
videoUrl | string | ✅ | YouTube 视频 URL |
language | string | 输出语言,默认 "Chinese (Simplified)" | |
prompt | string | 自定义提示词(覆盖默认) |
支持的语言: Chinese (Simplified), English, Japanese, Korean, Spanish, French, German
{
"title": "文章标题",
"author": "YouTube 频道名",
"summary": "2-4 句摘要",
"body": "## 正文\n\nMarkdown 格式的完整文章..."
}
video2article({
videoUrl: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
language: "Chinese (Simplified)"
})
video2article({
videoUrl: "https://www.youtube.com/watch?v=...",
language: "English",
prompt: "Focus on the technical details and create a tutorial-style article."
})
lovtrip video2article "https://www.youtube.com/watch?v=..."
默认以第一人称视角撰写,结构包含:
author 字段自动提取视频的 YouTube 频道名。
GEMINI_API_KEY(Google AI Studio 获取)Powered by LovTrip — AI Travel Planning Platform