自动抓取 LightReading 和 TechCrunch 科技新闻网站文章,AI 翻译生成中文摘要并自动推送到企业微信。
每天上午 11 点自动抓取 LightReading(电信网络)和 TechCrunch(科技创业)最新新闻,智能选择文章(确保两个网站都有代表),提取文章要点,由 AI 翻译成中文后推送到企业微信。全流程自动化,无需手动修改代码。
重点推荐(1 篇):优先 Iain Morris 文章(LightReading),4 个要点
其他精选(3 篇):
bash
pip install cloudscraper
编辑推送脚本文件:
python
WEBHOOK_URL = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY_HERE"
bash
cd skills/tech-news-daily
# 合并推送(推荐):LightReading + TechCrunch
python push_combined.py
# 单独推送(备用)
python push_wechat.py # 仅 LightReading
Cron 任务配置:
260be0fa-ab1b-4c73-a2fe-bed9e722cc7dtext
tech-news-daily/
├── SKILL.md # 技能说明文档
├── README.md # 使用说明
├── push_combined.py # 合并推送(LightReading + TechCrunch)✅ 主脚本
├── push_wechat.py # LightReading 单独推送(备用)
├── push_chinese.py # 读取 today_cn.txt 推送(备用)
├── ai_translate.py # AI 翻译助手
├── parse_email.py # 邮件内容解析(备用)
├── email_webhook.py # 邮件 Webhook 服务器(备用)
├── requirements.txt # Python 依赖
├── combined_en.txt # 合并推送英文(每天自动生成)
├── combined_cn.txt # 合并推送中文(每天自动生成)
├── today_en.txt # LightReading 英文(每天自动生成)
├── today_cn.txt # LightReading 中文(每天自动生成)
├── techcrunch_en.txt # TechCrunch 英文(每天自动生成)
├── techcrunch_cn.txt # TechCrunch 中文(每天自动生成)
└── pushed_history.json # 推送历史记录(自动生成)
cloudscraper>=1.2.71 - 绕过 Cloudflare 反爬虫text
每天上午 11 点自动触发 Cron 任务(10 分钟超时)
↓
┌──────────────────────────┐
│ 【第 1 步】运行脚本 │
│ - 抓取 LightReading RSS │
│ - 抓取 TechCrunch RSS │
│ - 抓取网页全文 │
│ - ✅ 验证内容 ≥ 200 字符 │
│ - ✅ 不足则自动更换文章 │
│ - 确保所有文章都有充足内容│
│ - 保存英文文件 │
└──────────────────────────┘
↓
┌──────────────────────────┐
│ 【第 2 步】AI 总结 │
│ - 读取 combined_en.txt │
│ - 阅读英文全文,理解内容 │
│ - 总结成 2-4 个中文要点 │
│ - 不是翻译,是总结 │
│ - 更新 combined_cn.txt │
└──────────────────────────┘
↓
┌──────────────────────────┐
│ 【第 3 步】推送 │
│ - ✅ 检查占位符 │
│ - 有占位符 → 跳过 │
│ - 无占位符 → 推送 │
└──────────────────────────┘
combined_en.txt、 today_en.txt、 techcrunch_en.txt 自动更新combined_cn.txt、 today_cn.txt、 techcrunch_cn.txtOpenClaw Skills
MIT License