← 返回 Skills 市场
callmegod66

Github Trending

作者 zhangsirrrrr · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
1291
总下载
1
收藏
6
当前安装
1
版本数
在 OpenClaw 中安装
/install github-trending-stable
功能描述
通过网页抓取获取 GitHub 按日/周/月增长的热门仓库。当用户询问 GitHub 趋势、热门项目、本周热点或「什么在 GitHub 上 trending」时使用。可输出列表或 JSON,无需 API Key。
使用说明 (SKILL.md)

GitHub Trending

抓取 GitHub 按日/周/月增长的热门仓库,仅使用 Python 标准库,无需安装第三方包。

何时使用

  • 用户询问 GitHub 趋势热门项目本周热点
  • 用户需要 今日 / 本周 / 本月 趋势
  • 用户需要按 编程语言 筛选的 trending

快速开始

在技能目录下执行(如 github-trending-stable/):

# 本周趋势(默认),15 条
python scripts/github_trending.py weekly

# 今日趋势,10 条
python scripts/github_trending.py daily --limit 10

# 本周 Python 趋势
python scripts/github_trending.py weekly --language python

# 输出 JSON(便于管道或工具调用)
python scripts/github_trending.py weekly --json

参数说明

参数 取值 默认 说明
period daily, weekly, monthly weekly 统计「新增 star」的时间范围
--limit 整数 15 返回仓库数量上限
--language 字符串 全部 按语言筛选(见下方)
--json 开关 输出 JSON 而非可读文本

语言:可用全称或别名。脚本支持别名:py→python、ts→typescript、js→javascript、cpp/c++→c++、c#/csharp→c#、rs→rust、rb→ruby、go→go。其他按原样传入(如 --language "c")。

输出格式

文本(默认)

  • 排名、仓库 full_name、描述(最多 90 字)
  • 每行统计符号含义:
    • 🔧 编程语言
    • 总 Star 数
    • 📈 本周期新增 Star 数
  • 时间为北京时区 (UTC+8)

JSON(--json

{
  "period": "weekly",
  "updated_at": "2026-03-13T21:00:00+08:00",
  "data": [
    {
      "rank": 1,
      "full_name": "owner/repo",
      "url": "https://github.com/owner/repo",
      "description": "...",
      "language": "Python",
      "stars_total": "12345",
      "stars_gained": 1234
    }
  ]
}

数据来源

  • 地址https://github.com/trending(及 .../trending/\x3C语言>?since=\x3C周期>
  • 方式:HTTP + html.parser.HTMLParser(无需浏览器、无需登录)
  • 实时:每次执行都会拉取当前页面

依赖

仅使用 Python 标准库:urllib.requesthtml.parserjsonargparsedatetime无需 pip 安装。

常见问题

现象 处理建议
返回空列表 / 无仓库 可能是网络提前断开(IncompleteRead)。重试;若脚本支持,可改用分块读取。
解析报错 / 结构不对 GitHub 可能改版了页面结构,需更新脚本选择器或解析逻辑。
超时 检查网络;默认超时 15 秒。
Windows 控制台 emoji 乱码/报错 设置 PYTHONIOENCODING=utf-8 或使用 --json 在别处解析。

说明

  • 趋势按选定周期内新增的 star 排序,不是按总 star 数。
  • 若需 GitHub API(如按 star 搜索、鉴权等),请使用单独的 GitHub API 类技能。
安全使用建议
This appears coherent and low-risk: the script only makes HTTP requests to github.com/trending and parses the returned HTML using Python stdlib. Before trusting or running code from an unknown source, you may want to: (1) quickly review the script (it is short) to confirm there are no hidden network calls or data exfiltration (the provided code shows none), (2) run it in a controlled environment if you are concerned, and (3) be aware that HTML scraping is brittle (GitHub may change page structure) and frequent automated requests can be rate-limited or blocked and may have Terms-of-Service implications. No secrets or system files are accessed by this skill.
功能分析
Type: OpenClaw Skill Name: github-trending-stable Version: 1.0.0 The skill is a standard GitHub Trending scraper that uses only Python standard libraries (urllib, html.parser) to fetch and display trending repositories. Analysis of scripts/github_trending.py and SKILL.md shows no evidence of data exfiltration, malicious execution, or prompt injection; the code strictly interacts with github.com and provides formatted output as described.
能力评估
Purpose & Capability
Name/description claim: fetch GitHub trending by period/language without API key. The included script and SKILL.md implement exactly that (urllib + html.parser). No unrelated credentials, binaries, or installation steps are requested.
Instruction Scope
Runtime instructions and the script only perform an HTTP GET to github.com/trending and parse the HTML. There are no steps that read local files, environment secrets, or send data to other endpoints. The scope is narrowly limited to fetching and parsing GitHub trending pages.
Install Mechanism
No install spec; the skill is instruction-only plus a single Python script that uses only the standard library. Nothing is downloaded or written during install.
Credentials
No environment variables, credentials, or config paths are requested. The skill's network access (outbound HTTP to github.com) is proportional to its purpose.
Persistence & Privilege
Does not request always:true or any elevated/persistent presence. It is user-invocable and follows normal autonomous-invocation defaults.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install github-trending-stable
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /github-trending-stable 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of github-trending-stable. - Fetches GitHub trending repositories by day, week, or month via web scraping; no API key required. - Supports filtering by programming language (with aliases) and custom result limits. - Outputs results as readable text or JSON. - Uses only Python standard library—no third-party dependencies needed. - Designed for queries about GitHub trending topics, hot projects, or language-specific trends.
元数据
Slug github-trending-stable
版本 1.0.0
许可证 MIT-0
累计安装 6
当前安装数 6
历史版本数 1
常见问题

Github Trending 是什么?

通过网页抓取获取 GitHub 按日/周/月增长的热门仓库。当用户询问 GitHub 趋势、热门项目、本周热点或「什么在 GitHub 上 trending」时使用。可输出列表或 JSON,无需 API Key。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1291 次。

如何安装 Github Trending?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install github-trending-stable」即可一键安装,无需额外配置。

Github Trending 是免费的吗?

是的,Github Trending 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Github Trending 支持哪些平台?

Github Trending 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Github Trending?

由 zhangsirrrrr(@callmegod66)开发并维护,当前版本 v1.0.0。

💬 留言讨论