Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bighardperson avatar

Github Trending Cn

  • 8 installs
  • 33 repo stars
  • Updated April 26, 2026
  • bighardperson/computer-science-skills-collection

github-trending-cn is a skill that fetches trending GitHub repositories by daily, weekly, or monthly period using the GitHub Search API.

About

github-trending-cn fetches trending GitHub repositories for daily, weekly, or monthly periods using the real GitHub Search API. A developer uses it to monitor popular open-source projects, optionally filtered by programming language, with JSON output for further processing. It runs a Python standard-library script with no pip dependencies and supports a GITHUB_TOKEN for higher rate limits.

  • Fetches GitHub trending repos by daily/weekly/monthly period via the Search API
  • Language filter and JSON output, standard-library only with no pip deps
  • Optional GITHUB_TOKEN raises the rate limit from 10 to 30 requests per minute

Github Trending Cn by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #1,522 of 2,719 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Jul 30, 2026 (Skillselion catalog sync)
At a glance

github-trending-cn capabilities & compatibility

Free; optional GITHUB_TOKEN raises the rate limit

Capabilities
repo discovery · trend monitoring
Works with
github
Use cases
research · web search
Pricing
Free
From the docs

What github-trending-cn says it does

Fetch GitHub trending repos by daily/weekly/monthly period using real GitHub Search API.
SKILL.md
不带 token 时,GitHub API 限制为 10 次/分钟;带 token 可提升到 30 次/分钟。
SKILL.md
**无任何 pip 依赖**,仅使用 Python 标准库
SKILL.md
npx skills add https://github.com/bighardperson/computer-science-skills-collection --skill github-trending-cn

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars33
Last updatedApril 26, 2026
Repositorybighardperson/computer-science-skills-collection

What it does

Fetch trending GitHub repos by day, week, or month with an optional language filter and JSON output.

Who is it for?

Monitoring trending open-source repos by period and language.

Skip if: Writing to GitHub or reproducing the exact official Trending page algorithm.

When should I use this skill?

A user asks for today's, this week's, or this month's trending GitHub repos.

What you get

A ranked list of trending repositories is returned for the chosen period and language.

  • Ranked trending repo list
  • JSON output

By the numbers

  • Default limit 20 repos
  • Rate limit 10 to 30 requests per minute with a token

Files

SKILL.mdMarkdownGitHub ↗

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-pdaily时间范围:daily / weekly / monthly
--limit-n20返回项目数量
--language-l全部编程语言过滤,如 pythongorust
--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

实现说明

  • 无任何 pip 依赖,仅使用 Python 标准库
  • 调用 https://api.github.com/search/repositories 真实 API
  • pushed:>=DATE stars:>=10 过滤 + sort=stars 排序
  • 多语言补充策略:先全量抓取,再按主流语言补充,确保结果多样性

常见问题

Q: 提示 HTTP 403 / rate limit exceeded? A: 设置 GITHUB_TOKEN 环境变量,或稍等片刻再试。

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

Q: 支持哪些编程语言? A: 所有 GitHub 支持的语言标识符,如 pythonjavascripttypescriptgorustjavacppswiftkotlin 等。

Related skills

FAQ

Does github-trending-cn match github.com/trending exactly?

No; it approximates trending via the Search API by recent star growth, so results are close but not identical.

How does GITHUB_TOKEN help?

Without a token the API is limited to 10 requests per minute; with a token it rises to 30 per minute.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.