自动抓取并发布科技财经热点新闻到今日头条。
- 📰 自动抓取科技、财经热点新闻
- 🤖 智能内容生成
- ⏰ 定时自动发布
- 📱 WhatsApp 远程控制
- 💾 本地数据存储
cd ~/clawd/toutiao-auto-publisher
npm install# 抓取新闻
npm run fetch
# 生成并发布
npm run publish
# 获取新闻列表
npm run news
# 启动定时任务
npm run schedule发送消息给 Clawdbot:
- "今日头条有什么新闻"
- "生成今日头条文章"
- "抓取科技新闻"
编辑 config.yaml:
# 发布配置
publish:
schedule:
- "08:00" # 早间新闻
- "12:00" # 午间快讯
- "18:00" # 晚间总结
# 今日头条API(可选)
toutiao:
apiKey: "${TOUTIAO_API_KEY}"
apiSecret: "${TOUTIAO_API_SECRET}"toutiao-auto-publisher/
├── src/
│ ├── index.ts # 主入口
│ ├── crawlers/ # 新闻抓取器
│ │ ├── tech.ts # 科技新闻
│ │ └── finance.ts # 财经新闻
│ ├── publisher/ # 发布器
│ └── utils/ # 工具函数
├── skills/ # Clawdbot skill
├── config.yaml # 配置文件
└── package.json
MIT