Install
openclaw skills install youtube-daily-digest-botA Python bot that monitors YouTube channels via RSS, summarizes new videos using Google Gemini AI (with audio fallback for videos without subtitles), and sends bilingual (Chinese + English) summaries to a Telegram chat daily.
openclaw skills install youtube-daily-digest-botThis skill deploys a YouTube monitoring bot that:
youtube-transcript-apiyt-dlp if no subtitles are availableYou need these three secrets configured in your environment:
GEMINI_API_KEY — from Google AI StudioTG_BOT_TOKEN — from Telegram @BotFatherTG_CHAT_ID — your personal or group Telegram chat ID| File | Purpose |
|---|---|
config.py | All configuration, API keys, and YouTube channel settings |
youtube_monitor.py | RSS polling and local deduplication via db.json |
extractor.py | Transcript fetching or audio download fallback |
ai_summarizer.py | Gemini API integration (text + audio) |
tg_notifier.py | Telegram message delivery with chunking |
main.py | Main entry point with daily 8:00 AM scheduling |
requirements.txt | All Python dependencies |
Edit config.py and add your API keys and the YouTube Channel IDs you want to monitor:
YOUTUBE_CHANNELS = {
"UCxxxxxxxxxxxxxxxxxxxxxx": "Channel Name Here"
}
pip install -r requirements.txt
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 &
UC...db.json so it never sends duplicate summaries