← 返回
未分类

GitHub Trending Feed

获取 GitHub Trending 热门仓库列表。当用户要求查看 GitHub 热榜、每日 GitHub trending、推送 GitHub 热门项目时使用。支持可选语言过滤,返回结构化 JSON 由 agent 自行决定输出格式。
获取 GitHub Trending 热门仓库列表。当用户要求查看 GitHub 热榜、每日 GitHub trending、推送 GitHub 热门项目时使用。支持可选语言过滤,返回结构化 JSON 由 agent 自行决定输出格式。
humor200 humor200 来源
未分类 clawhub v1.0.0 1 版本 99938.5 Key: 无需
★ 1
Stars
📥 1,605
下载
💾 17
安装
1
版本
#latest

概述

GitHub Trending 数据获取

工作流程

  1. 抓取 Trending 页面:获取 GitHub 热门仓库列表
  2. 获取仓库详情:对每个仓库调用 GitHub REST API 获取 description、stars、language
  3. 返回 JSON:agent 自行格式化为目标平台的消息

使用方法

基础用法

python3 ~/.openclaw/workspace/skills/github-trending/scripts/fetch_trending.py

语言过滤

python3 ~/.openclaw/workspace/skills/github-trending/scripts/fetch_trending.py python
python3 ~/.openclaw/workspace/skills/github-trending/scripts/fetch_trending.py javascript

输出格式

返回 JSON 数组,每个元素:

{
  "full_name": "owner/repo",
  "description": "仓库描述",
  "language": "Python",
  "stars": 12345,
  "url": "https://github.com/owner/repo"
}

Agent 使用建议

获取数据后,根据所在平台格式化输出:

飞书

📊 **GitHub Trending · 今日热榜**
🔥 1. owner/repo - 描述 ⭐ 12345 | Python 🔗 https://github.com/owner/repo

Discord/Telegram

📊 GitHub Trending 今日热榜
1. owner/repo - 描述 ⭐ 12345 | Python | https://github.com/owner/repo

控制台

1. owner/repo (⭐ 12345 | Python)
   描述
   https://github.com/owner/repo

注意事项

  • GitHub API 有速率限制,高频使用建议配合缓存
  • 脚本自动处理 API 错误,失败时会返回 fallback 数据
  • 默认返回 9 个仓库,语言过滤时返回 10 个

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 18:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,707
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 328,214
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,764