← 返回
未分类 Key 中文

YouTube Daily Digest: Auto Monitor & Summary 🥥Meow

A Python bot that monitors YouTube channels via RSS, summarizes new videos using Google Gemini AI (with audio fallback for videos without subtitles), and sen...
一个 Python 机器人,通过 RSS 监控 YouTube 频道,使用 Google Gemini AI 对新视频进行摘要(对无字幕视频采用音频回退),并将其摘要发送至指定渠道。
inkiy inkiy 来源
未分类 clawhub v1.0.0 1 版本 99760.8 Key: 需要
★ 1
Stars
📥 397
下载
💾 2
安装
1
版本
#latest

概述

YouTube 每日视频总结 Telegram 机器人

This skill deploys a YouTube monitoring bot that:

  1. Polls configured YouTube channels via RSS feed (no API key needed for this step)
  2. Extracts video transcripts using youtube-transcript-api
  3. Falls back to audio download via yt-dlp if no subtitles are available
  4. Summarizes content using Google Gemini 2.5 Flash (supports both text and audio input natively)
  5. Sends a beautifully formatted bilingual (Chinese + English) summary to Telegram

Prerequisites

You need these three secrets configured in your environment:

  • GEMINI_API_KEY — from Google AI Studio
  • TG_BOT_TOKEN — from Telegram @BotFather
  • TG_CHAT_ID — your personal or group Telegram chat ID

File Structure

FilePurpose
---------------
config.pyAll configuration, API keys, and YouTube channel settings
youtube_monitor.pyRSS polling and local deduplication via db.json
extractor.pyTranscript fetching or audio download fallback
ai_summarizer.pyGemini API integration (text + audio)
tg_notifier.pyTelegram message delivery with chunking
main.pyMain entry point with daily 8:00 AM scheduling
requirements.txtAll Python dependencies

Setup & Usage

Step 1: Configure channels and secrets

Edit config.py and add your API keys and the YouTube Channel IDs you want to monitor:

YOUTUBE_CHANNELS = {
    "UCxxxxxxxxxxxxxxxxxxxxxx": "Channel Name Here"
}

Step 2: Install dependencies

pip install -r requirements.txt

Step 3: Run

For a one-off immediate check:

python main.py

For long-running background mode (runs daily at 8 AM Izmir time):

nohup python main.py > bot.log 2>&1 &

How to Find a YouTube Channel ID

  1. Go to the YouTube channel page
  2. Click the channel name, then go to About
  3. Click "Share Channel" and copy the link — the ID starts with UC...
  4. Or use commentpicker.com/youtube-channel-id.php

Notes

  • The bot tracks processed videos in db.json so it never sends duplicate summaries
  • If Gemini API is not configured, the bot will fail gracefully with a clear error message
  • Long videos with audio fallback may take 1–2 minutes to upload and process

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 20:24 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,097 📥 823,722
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,394 📥 322,176
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 833 📥 303,344