Skip to content
Back to skills

Ai News Daily V1 0 3

ASecurity

AI 新闻日报 v1.0.3 - 自动抓取全球 AI 行业最新动态,每日推送 10 条精选新闻。支持英文标题/内容自动翻译、400-500 字中文摘要、外部配置 (config.yaml)、失败重试、智能去重。安装后自动创建 OpenClaw 定时任务,每天早上 9:00 自动推送到对话框。用于定时抓取 AI 新闻、RSS 聚合、多语言支持。

  • 33 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentspythonbashsqlapi

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 7 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill ai-news-daily-v1-0-3 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ai News Daily V1 0 3?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ai News Daily V1 0 3
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-ai-news-daily-v1-0-3/badge)](https://www.skillsdirectory.com/skills/dvcrn-ai-news-daily-v1-0-3)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ai-news-daily-v1-0-3
description: "AI 新闻日报 v1.0.3 - 自动抓取全球 AI 行业最新动态,每日推送 10 条精选新闻。支持英文标题/内容自动翻译、400-500 字中文摘要、外部配置 (config.yaml)、失败重试、智能去重。安装后自动创建 OpenClaw 定时任务,每天早上 9:00 自动推送到对话框。用于定时抓取 AI 新闻、RSS 聚合、多语言支持。"
---

# AI 新闻日报 v1.0.3

自动抓取全球 AI 行业最新动态,每日推送 10 条精选新闻。

## ✨ 功能特性 (v1.0.3)

1. **自动推送** - 安装后自动创建 OpenClaw 定时任务,每天早上 9:00 推送到对话框
2. **AI 生成摘要** - **400-500 字**中文摘要,内容更丰富详细
3. **英文自动翻译** - 英文标题和内容自动翻译成中文
4. **外部配置** - 所有参数移到 `config/config.yaml`,方便自定义
5. **完整内容保存** - 保存原始内容供 AI 生成高质量摘要
6. **失败重试** - 自动重试失败的请求,指数退避机制
7. **智能去重** - URL 归一化 + 标题相似度检测,避免重复新闻

## 🚀 快速开始

### 安装

```bash
# 解压 skill
unzip ai-news-daily-v1-0-3.skill -d ai-news-daily
cd ai-news-daily

# 安装依赖
pip install -r requirements.txt

# 运行主程序(会自动创建定时任务)
python3 src/daily_fetch.py
```

安装完成后,**每天早上 9:00 会自动推送新闻到当前对话**。

### 手动运行

```bash
# 立即抓取并推送
./run.sh
```

## ⚙️ 配置

编辑 `config/config.yaml`:

```yaml
# 抓取配置
fetch:
  max_workers: 4          # 并发线程数
  request_timeout: 15     # 请求超时(秒)
  max_retries: 3          # 失败重试次数
  retry_delay: 2          # 重试间隔(秒)
  
# 摘要配置  
summary:
  target_min: 400         # 摘要最小中文字数
  target_max: 500         # 摘要最大中文字数

# 输出配置
output:
  top_n: 10               # 每天推送几条新闻
  
# 推送配置
push:
  openclaw:
    enabled: true
    output_file: data/openclaw_message.txt
```

## 📅 定时任务管理

```bash
# 查看所有定时任务
openclaw cron list

# 手动立即运行一次
openclaw cron run <job-id>

# 暂停任务
openclaw cron update <job-id> --enabled false

# 删除任务
openclaw cron remove <job-id>
```

## 📁 文件结构

```
ai-news-daily/
├── SKILL.md              # 本文件
├── config/
│   └── config.yaml       # 配置文件
├── src/
│   ├── daily_fetch.py    # 主程序(抓取新闻 + 生成摘要)
│   ├── translator.py     # 翻译模块(支持多语言)
│   └── generate_summary.py  # 摘要生成(400-500 字)
├── data/
│   ├── news.db           # SQLite 数据库(自动创建)
│   ├── fetch.log         # 运行日志
│   └── openclaw_message.txt  # 生成的消息
├── requirements.txt      # Python 依赖列表
└── run.sh                # 运行脚本
```

## 📰 新闻源

| 权重 | 来源 |
|------|------|
| 1.3 | 量子位、机器之心、36 氪、新智元、智东西、InfoQ |
| 1.2 | TechCrunch AI、The Verge AI、MIT Tech Review |
| 1.1 | 雷锋网、钛媒体、极客公园 |
| 1.0 | 虎嗅 |

## 📤 输出格式

```
📰 AI 每日新闻 - 2026 年 03 月 03 日

共 10 条精选
──────────────────────────────

**1. [量子位] 英伟达放弃 GPU 上 LPU:新推理芯片被曝 Groq 即买即用**

英伟达放弃 GPU 上 LPU:新推理芯片被曝 Groq 即买即用,OpenAI 第一个吃螃蟹。据悉,在即将开幕的 3 月圣何塞 GTC 大会上,黄仁勋将发布一套全新的 AI 推理系统...(400-500 字中文摘要)
🔗 [阅读原文](url)

...

🤖 AI News Aggregator | 每日更新
```

## 🛠️ 故障排除

### 定时任务未创建
```bash
# 手动运行一次创建定时任务
python3 src/daily_fetch.py
```

### 依赖安装失败
```bash
pip install --break-system-packages -r requirements.txt
```

### 新闻抓取失败
```bash
# 查看日志
tail -f data/fetch.log
```

### 翻译失败
翻译使用 MyMemory 免费 API,如果失败会保留原文。可配置其他翻译服务:
```bash
export TRANSLATE_API_KEY="your_api_key"  # DeepL/百度翻译
```

## 🔧 工作原理

1. **抓取阶段** (`daily_fetch.py`)
   - 并发抓取 14 个 RSS 源
   - 保存完整原始内容到数据库
   - 智能去重,避免重复

2. **翻译阶段** (`translator.py`)
   - 自动检测英文标题和内容
   - 使用 MyMemory API 翻译成中文
   - 支持 DeepL/百度翻译(需配置 API Key)

3. **摘要阶段** (`generate_summary.py`)
   - 从数据库读取原始内容
   - 生成 **400-500 字**中文摘要
   - 自动补充说明达到字数要求

4. **推送阶段** (OpenClaw 定时任务)
   - 每天 9:00 自动触发
   - 生成摘要并推送到对话框

## 📝 更新日志

### v1.0.3 (2026-03-03)
- ✅ 摘要字数调整为 **400-500 字**(更详细)
- ✅ 英文标题自动翻译
- ✅ 增加更多补充说明内容
- ✅ 优化摘要提取逻辑

### v1.0.2
- ✅ 英文内容自动翻译
- ✅ 摘要字数 250-300 字
- ✅ 定时任务自动创建

### v1.0.1
- ✅ 基础功能实现
- ✅ RSS 抓取和去重

## 📄 License

MIT

Files in this skill

  • SKILL.md5.3 KB
  • config/config.yaml1.5 KB
  • requirements.txt101 B
  • run.sh623 B
  • src/daily_fetch.py19.7 KB
  • src/generate_summary.py6.4 KB
  • src/translator.py5.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…