Quick setup guide for getting the YouTube Monitor Bot running.
pip install -r requirements.txt-
Copy the example environment file:
cp .env.example .env
-
Edit
.envand add your API keys:Get Gemini API Key:
- Visit https://makersuite.google.com/app/apikey
- Create a new API key
- Paste into
GEMINI_API_KEY
Create Telegram Bot:
- Message @BotFather on Telegram
- Send
/newbotand follow the prompts - Copy the bot token to
TELEGRAM_BOT_TOKEN
Get Your Telegram Chat ID:
- Message @userinfobot on Telegram
- Copy your ID to
TELEGRAM_CHAT_ID
Edit config/channels.txt and add YouTube channels (one per line):
@GregIsenberg
https://www.youtube.com/@MyFirstMillionPod
@lexfridman
Edit config/my_interests.txt to personalize AI summaries based on what you care about.
Run a manual check:
./monitor.sh checkTest Telegram notifications:
./monitor.sh testAdd to crontab for hourly checks:
crontab -eAdd this line:
0 * * * * cd /path/to/youtube-monitor-bot && ./monitor.sh check >> data/logs/monitor.log 2>&1
Run checks whenever you want:
./monitor.sh checkFor interactive channel management via Telegram:
# Foreground
./monitor.sh bot
# Background (Linux/Mac)
nohup ./monitor.sh bot >> data/logs/bot-commands.log 2>&1 &Import errors:
pip install --upgrade -r requirements.txtTelegram not working:
./monitor.sh testCheck system health:
./monitor.sh healthView logs:
tail -f data/logs/monitor.logOnce everything is working:
- The bot will check channels every hour (if cron is set up)
- New videos will trigger AI summaries
- You'll receive Telegram notifications with relevance scores
- Use
/list,/add,/removecommands in Telegram to manage channels
Enjoy staying on top of YouTube content!