Github trending cn

From bighardperson/computer-science-skills-collection · View interactive version

Github trending cn is an AI agent skill from the GitHub repository bighardperson/computer-science-skills-collection. GitHub Trending Monitor. Fetch GitHub trending repos by daily/weekly/monthly period using real GitHub Search API. Runs scripts/github_trending.py (no pip deps, stdlib only). Use when user asks for 今日热门, 本周热门, 本月热门, GitHub trending, 开源动态, or popular repos. Supports language filter (python/javascript/

How to use this skill

Skill file

GitHub Trending CN

获取 GitHub 真实热门项目数据,支持今日 / 本周 / 本月,可按编程语言过滤。

快速开始

# 今日热门(默认)
python3 scripts/github_trending.py

# 本周热门,Top 25
python3 scripts/github_trending.py --period weekly --limit 25

# 本月热门,只看 Python 项目
python3 scripts/github_trending.py --period monthly --language python

# 输出 JSON(方便进一步处理)
python3 scripts/github_trending.py --period daily --json

参数说明

| 参数 | 简写 | 默认值 | 说明 |

|------|------|--------|------|

| --period | -p | daily | 时间范围:daily / weekly / monthly |

| --limit | -n | 20 | 返回项目数量 |

| --language | -l | 全部 | 编程语言过滤,如 python、go、rust |

| --token | -t | 环境变量 | GitHub PAT,也可设置 GITHUB_TOKEN |

| --json | — | 否 | 输出原始 JSON |

提高 API 限额

不带 token 时,GitHub API 限制为 10 次/分钟;带 token 可提升到 30 次/分钟。

export GITHUB_TOKEN=your_personal_access_token
python3 scripts/github_trending.py --period weekly

实现说明

常见问题

Q: 提示 HTTP 403 / rate limit exceeded?

A: 设置 GITHUB_TOKEN 环境变量,或稍等片刻再试。

Q: 结果和 github.com/trending 不完全一致?

A: GitHub 官方 Trending 页面使用内部算法,此脚本通过 Search API 按近期 stars 增量近似实现,结果高度吻合但不完全相同。

Q: 支持哪些编程语言?

A: 所有 GitHub 支持的语言标识符,如 python、javascript、typescript、go、rust、java、cpp、swift、kotlin 等。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.