← Back to Skills Marketplace
callmegod66

Github Trending

by zhangsirrrrr · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
1291
Downloads
1
Stars
6
Active Installs
1
Versions
Install in OpenClaw
/install github-trending-stable
Description
通过网页抓取获取 GitHub 按日/周/月增长的热门仓库。当用户询问 GitHub 趋势、热门项目、本周热点或「什么在 GitHub 上 trending」时使用。可输出列表或 JSON,无需 API Key。
README (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 类技能。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install github-trending-stable
  3. After installation, invoke the skill by name or use /github-trending-stable
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug github-trending-stable
Version 1.0.0
License MIT-0
All-time Installs 6
Active Installs 6
Total Versions 1
Frequently Asked Questions

What is Github Trending?

通过网页抓取获取 GitHub 按日/周/月增长的热门仓库。当用户询问 GitHub 趋势、热门项目、本周热点或「什么在 GitHub 上 trending」时使用。可输出列表或 JSON,无需 API Key。 It is an AI Agent Skill for Claude Code / OpenClaw, with 1291 downloads so far.

How do I install Github Trending?

Run "/install github-trending-stable" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Github Trending free?

Yes, Github Trending is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Github Trending support?

Github Trending is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Github Trending?

It is built and maintained by zhangsirrrrr (@callmegod66); the current version is v1.0.0.

💬 Comments