github-trending
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGitHub Trending 摘要推送
GitHub Trending Digest Push
功能
Features
- 抓取 https://github.com/trending 今日热门前 5 项目
- 拉取每个项目 README
- 生成包含项目是什么、解决问题、技术栈、Star 数量的中文摘要
- 通过企业微信机器人发送摘要
- Crawl the top 5 popular projects today from https://github.com/trending
- Pull the README of each project
- Generate a Chinese digest containing what the project is, problems solved, technology stack and Star count
- Send the digest via WeCom bot
脚本
Scripts
1. 抓取与保存
1. Crawl and Save
bash
python fetch_trending.py --output trending_top5.jsonbash
python fetch_trending.py --output trending_top5.json2. 生成摘要并发送
2. Generate Digest and Send
bash
python send_wecom_summary.py --input trending_top5.jsonbash
python send_wecom_summary.py --input trending_top5.json配置
Configuration
- 可选环境变量 用于提高 GitHub API 额度
GITHUB_TOKEN - 可选环境变量 覆盖默认企业微信机器人地址
WEIXIN_WEBHOOK
- Optional environment variable to increase GitHub API quota
GITHUB_TOKEN - Optional environment variable to override the default WeCom bot address
WEIXIN_WEBHOOK