youtube-notification-analysis

TotalClaw 作者 totalclaw

分析 YouTube 通知以获取投资和交易见解。当用户需要 YouTube 的投资建议、分析股票加密或金融内容、执行 /ytb_trade 命令或通过 yt-dlp 和 Whisper-cpp 获取视频字幕时使用。工作流程已打开 YouTube 单击通知铃提取视频 ID 获取字幕或下载加上耳语 cpp 分析然后执行交易。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~esanle-youtube-notification-analysis
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~esanle-youtube-notification-analysis/file -o esanle-youtube-notification-analysis.md
## 概述(中文)

分析 YouTube 通知以获取投资和交易见解。当用户需要 YouTube 的投资建议、分析股票加密或金融内容、执行 /ytb_trade 命令或通过 yt-dlp 和 Whisper-cpp 获取视频字幕时使用。工作流程已打开 YouTube 单击通知铃提取视频 ID 获取字幕或下载加上耳语 cpp 分析然后执行交易。

## 原文

# YouTube Notification Analysis

Analyze YouTube notifications for investment insights.

## Workflow

1. **Open YouTube**: `browser action=open profile=openclaw targetUrl=https://www.youtube.com`
2. **Click notification bell**: Find ref="e8" button
3. **Extract video IDs**: From snapshot, find investment-related videos
4. **Get subtitles**:
   - First try: `yt-dlp --write-subs --skip-download --sub-lang zh-Hans,en <video_url>`
   - If no subtitles: Download video + whisper-cpp analysis
5. **Analyze**: Summarize investment recommendations
6. **Execute trades**: Use tiger-trade skill

## Subtitle Extraction

```bash
# Try yt-dlp first
yt-dlp --write-subs --skip-download --sub-lang zh-Hans,en "https://www.youtube.com/watch?v=VIDEO_ID" -o /tmp/sub

# If no subtitles, download + whisper
yt-dlp -f best "https://www.youtube.com/watch?v=VIDEO_ID" -o /tmp/video.mp4
whisper-cpp/bin/main -m whisper-cpp/models/ggml-base.bin -f /tmp/video.mp4 --language ZH
```

## Investment Analysis

Focus on investment and trading related videos from YouTube notifications. Analyze content for stock, crypto, macro finance, and market trends.

## Logging

All logs saved to `/tmp/youtube_investment_*.log`