YouTube Content

The YouTube Content cron job monitors selected cybersecurity YouTube channels for new videos, providing notifications and AI-generated summaries of their content. This feature helps you stay updated with the latest cybersecurity tutorials, demonstrations, and insights from your favorite creators without having to manually check multiple channels.

Quick Details

  • Cron Script: sendYoutubeResume.js
  • Data Source: YouTube Data API
  • Frequency: Daily (configurable)
  • Command: npm run cron -- -c sendYoutubeResume -y @channel

Functionality

The YouTube Content cron job performs the following operations:

  1. Connects to the YouTube Data API using your configured API key
  2. Fetches new videos from your YouTube channels
  3. Extracts video subtitles and uses AI to generate concise summaries of video content based on descriptions and transcripts (when available)
  4. Sends notifications to your Telegram channel
  5. Tracks which videos have been processed to avoid duplicate notifications

Usage

YouTube API Setup

Before using the YouTube Content cron, you need to set up API access:

  1. Go to Google Developers Console
  2. Create a new project or select an existing one
  3. Enable the YouTube Data API v3 for your project
  4. Create API credentials (API Key)
  5. Copy the API key and add it to your .env file

Running

To run the YouTube Content cron job manually:

# Check for new videos from configured channels
npm run cron -- -c sendYoutubeResume -y @channel