github-trending

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

GitHub 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.json
bash
python fetch_trending.py --output trending_top5.json

2. 生成摘要并发送

2. Generate Digest and Send

bash
python send_wecom_summary.py --input trending_top5.json
bash
python send_wecom_summary.py --input trending_top5.json

配置

Configuration

  • 可选环境变量
    GITHUB_TOKEN
    用于提高 GitHub API 额度
  • 可选环境变量
    WEIXIN_WEBHOOK
    覆盖默认企业微信机器人地址
  • Optional environment variable
    GITHUB_TOKEN
    to increase GitHub API quota
  • Optional environment variable
    WEIXIN_WEBHOOK
    to override the default WeCom bot address