← 返回
未分类 中文

油管视频转音频到飞书

Download YouTube video audio and upload to Feishu cloud storage
下载YouTube视频音频并上传到飞书云存储
yanghuicode yanghuicode 来源
未分类 clawhub v1.0.0 1 版本 99818.5 Key: 无需
★ 1
Stars
📥 530
下载
💾 0
安装
1
版本
#latest

概述

YouTube to Feishu Audio Upload

What it does

Downloads audio from YouTube video and uploads to Feishu cloud storage, then sends file link to user's Feishu chat.

Usage Examples

  • "Download this YouTube video audio and send to my Feishu: https://www.youtube.com/watch?v=dyJUscv7b9g"
  • "Convert YouTube to MP3 and upload to Feishu: "
  • "Save this YouTube audio to Feishu cloud: "

Workflow

  1. Extract video info - Fetch YouTube video title, duration, thumbnail
  2. Download audio - Use yt-dlp to extract and convert to MP3
  3. Upload to Feishu - Upload file to Feishu cloud drive
  4. Send to user - Send interactive card with download link to Feishu chat
  5. Cleanup - Remove temporary local files

Tools

youtube_upload — Download and upload YouTube audio

When user sends a YouTube URL:

  1. Parse URL - Extract video ID from YouTube URL
  2. Download - Use yt-dlp to download audio as MP3
  3. Upload - Upload to Feishu cloud drive via feishu_drive_file
  4. Send - Send interactive card to user via feishu_im_user_message
  5. Report - Return file info and links

Output Format

For each upload, return:

  • Video title
  • Audio file size
  • Duration (if available)
  • Feishu cloud file link
  • Feishu message card

Dependencies

  • yt-dlp - YouTube download tool (pip install yt-dlp)
  • Python 3.8+
  • Feishu OAuth - User authorization for cloud drive and IM

Configuration

VariableDescriptionDefault
--------------------------------
FEISHU_USER_IDUser's Feishu open_idRequired
TEMP_DIRTemporary download directory./temp

Guardrails

  • Only download from YouTube (validate URL)
  • Respect copyright - warn user about downloaded content usage
  • Auto-cleanup temp files after upload
  • Max file size: 100MB (Feishu limit)
  • Report errors honestly if download/upload fails

Example Flow

User: Download this to Feishu: https://www.youtube.com/watch?v=dyJUscv7b9g

Bot: [1/4] Extracting video info...
Bot: [2/4] Downloading audio (MP3, 17.5MB)...
Bot: [3/4] Uploading to Feishu cloud...
Bot: [4/4] Sending to your Feishu chat...
Bot: ✅ Done! File sent to your Feishu.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-02 09:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 427 📥 116,422
design-media

Video Frames

steipete
使用 ffmpeg 从视频中提取帧或短片。
★ 133 📥 52,720
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 330 📥 93,249