Tech News Bulletin
Collect the latest technology and AI news from two sources:
- 1. RSS feeds — e.g., TechCrunch, Wired AI, Google AI Blog
- TLDR.tech AI Newsletter — yesterday's edition, fetched and sanitized automatically
Merge both into a single deduplicated digest and send it to a list of email addresses.
When to use (trigger phrases)
Use this skill immediately when the user asks any of:
- - "tech news bulletin"
- "daily tech bulletin"
- "send tech bulletin"
- "run tech bulletin"
- "create tech bulletin"
Workflow
- 1. Fetch RSS feeds from configured sources
- Fetch TLDR.tech AI newsletter for the previous day (
https://tldr.tech/ai/YYYY-MM-DD) - Sanitize TLDR HTML — extract article title, canonical link, and summary; strip sponsor blocks, navigation, footers
- Merge & deduplicate all articles by URL
- Sort by date (newest first) and limit to INLINECODE1
- Summarize each article via Ollama (falls back to the description snippet if unavailable)
- Build HTML digest with per-article source badges (RSS source name vs. "TLDR AI")
- Send digest to all configured email addresses via SMTP
Installation
Install required Python packages:
CODEBLOCK0
Ensure environment variables are set:
CODEBLOCK1
Configuration
Edit scripts/bulletin.py to customize:
- -
RSS_FEEDS — list of RSS URL endpoints - INLINECODE4 — recipients for the bulletin
- INLINECODE5 — maximum articles in the combined digest (default 15)
- INLINECODE6 — base URL for the TLDR newsletter (default
https://tldr.tech/ai/)
The Ollama endpoint is http://172.20.86.203:11434 with model glm-4.7-flash:latest.
Usage
To run the bulletin now:
CODEBLOCK2
Check the log output:
CODEBLOCK3
Or let the skill handle it automatically via cron:
CODEBLOCK4
Digest Format
Subject: Daily Tech & AI News Bulletin
Body (HTML):
- - Header with date and source attribution
- Per article:
- Linked title
- Source badge (RSS feed name or "TLDR AI")
- 1–5 sentence summary
Differences from tech-news-digest
| Feature | tech-news-digest | tech-news-bulletin |
|---|
| RSS feeds | ✅ | ✅ |
| TLDR.tech AI newsletter |
❌ | ✅ |
| Source badges in digest | ❌ | ✅ |
| HTML sanitizer (inline) | ❌ | ✅ |
| Combined deduplication | ❌ | ✅ |
Rules
- - Send emails via the SMTP credentials in the environment (
SMTP_EMAIL, SMTP_PASSWORD) - Keep each article summary to 1–5 sentences
- Strip sponsor articles from TLDR content
- Total digest should be readable within ~5 minutes
- TLDR date is always computed as
today - 1 day at runtime, so no manual date config is needed
科技新闻简报
从两个来源收集最新的科技和人工智能新闻:
- 1. RSS订阅源 — 例如 TechCrunch、Wired AI、Google AI 博客
- TLDR.tech AI 新闻简报 — 自动获取并清理昨日的版本
将两者合并为单一的去重摘要,并发送至邮箱地址列表。
使用时机(触发短语)
当用户提出以下任一请求时,立即使用此技能:
- - 科技新闻简报
- 每日科技简报
- 发送科技简报
- 运行科技简报
- 创建科技简报
工作流程
- 1. 获取RSS订阅源 — 从配置的源获取
- 获取TLDR.tech AI新闻简报 — 获取前一天的版本(https://tldr.tech/ai/YYYY-MM-DD)
- 清理TLDR HTML — 提取文章标题、规范链接和摘要;去除赞助商板块、导航栏、页脚
- 合并去重 — 按URL对所有文章进行去重
- 按日期排序(最新优先)并限制为MAX_ARTICLES篇
- 通过Ollama总结每篇文章(若不可用则回退到描述片段)
- 构建HTML摘要 — 每篇文章附带来源标签(RSS源名称 vs. TLDR AI)
- 通过SMTP发送摘要至所有配置的邮箱地址
安装
安装所需的Python包:
bash
pip install feedparser requests beautifulsoup4
确保设置环境变量:
bash
export SMTP_EMAIL=your-email@example.com
export SMTP_PASSWORD=your-app-password
配置
编辑scripts/bulletin.py以自定义:
- - RSSFEEDS — RSS URL端点列表
- EMAILADDRESSES — 简报接收者
- MAXARTICLES — 合并摘要中的最大文章数(默认15)
- TLDRBASE_URL — TLDR新闻简报的基础URL(默认https://tldr.tech/ai/)
Ollama端点为http://172.20.86.203:11434,使用模型glm-4.7-flash:latest。
使用方法
立即运行简报:
bash
python3 /home/juniarto/.openclaw/workspace/skills/tech-news-bulletin/scripts/bulletin.py
查看日志输出:
bash
tail -f /tmp/openclaw-debug.log
或通过cron让技能自动处理:
bash
openclaw cron add --job={
name: daily-tech-bulletin,
schedule: { kind: every, everyMs: 86400000, anchorMs: 42000000 },
payload: { kind: systemEvent, text: run-tech-news-bulletin },
sessionTarget: isolated,
enabled: true
}
摘要格式
主题: 每日科技与AI新闻简报
正文(HTML):
- 带链接的标题
- 来源标签(RSS订阅源名称或TLDR AI)
- 1-5句摘要
与tech-news-digest的区别
| 特性 | tech-news-digest | tech-news-bulletin |
|---|
| RSS订阅源 | ✅ | ✅ |
| TLDR.tech AI新闻简报 |
❌ | ✅ |
| 摘要中的来源标签 | ❌ | ✅ |
| HTML清理器(内联) | ❌ | ✅ |
| 合并去重 | ❌ | ✅ |
规则
- - 通过环境变量中的SMTP凭据(SMTPEMAIL、SMTPPASSWORD)发送邮件
- 每篇文章摘要保持1-5句
- 从TLDR内容中去除赞助商文章
- 总摘要应在约5分钟内可读完
- TLDR日期始终在运行时计算为今天 - 1天,因此无需手动配置日期