← 返回
未分类 中文

GitHub Trending Scraper

Scrape GitHub Trending repos into structured JSON. Use when the user asks about GitHub trending, hottest repos, trending repositories, what's popular on GitH...
抓取GitHub Trending仓库并生成结构化JSON。当用户询问GitHub热门、热点仓库、流行项目等时使用。
yes999zc
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 312
下载
💾 0
安装
1
版本
#latest

概述

GitHub Trending Scraper

Scrapes https://github.com/trending and outputs structured JSON.

Quick Start

# All languages, today, top 25
python3 scripts/github_trending.py

# Python repos, this week, top 10
python3 scripts/github_trending.py --language python --since weekly --top 10

# Save to file
python3 scripts/github_trending.py -o /tmp/github-trending.json

Options

FlagShortDefaultDescription
-----------------------------------
--language-lallFilter by language (python, rust, go, javascript, etc.)
--since-sdailyTime range: daily, weekly, monthly
--top-n25Number of repos to return
--output-ostdoutOutput file path
--compactMinified JSON output

Output Schema

{
  "source": "github-trending",
  "scraped_at": "ISO-8601",
  "language": "all|python|rust|...",
  "since": "daily|weekly|monthly",
  "count": 25,
  "repos": [
    {
      "rank": 1,
      "owner": "warpdotdev",
      "name": "warp",
      "full_name": "warpdotdev/warp",
      "url": "https://github.com/warpdotdev/warp",
      "description": "Warp is an agentic development environment...",
      "language": "Rust",
      "stars": 46667,
      "forks": 2917,
      "stars_period": 12822,
      "stars_period_label": "today"
    }
  ]
}

Integration with Trending Cards

Pipe output into the existing trending card generator:

python3 scripts/github_trending.py -o /tmp/github-trending.json
python3 ~/.openclaw/workspace/scripts/trending-card-gen.py \
  --input /tmp/github-trending.json \
  --output /tmp/trending-card.html \
  --platform github --theme white --size hd

Notes

  • No API key required; scrapes the public GitHub Trending page
  • Rate limit: reasonable use only; avoid rapid repeated calls
  • Some repos (e.g. sponsors/username) may show 0 stars/forks due to GitHub page structure

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 01:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gateway Monitor (macOS)

yes999zc
在 macOS 上通过 LaunchAgent 和 watchdog 部署本地 OpenClaw Gateway Monitor 栈,用于搭建、修复或验证网关监控。
★ 0 📥 960
developer-tools

Gateway Monitor

yes999zc
为 OpenClaw 网关及相关服务提供实时监控、日志搜索、状态告警与一键配置恢复。
★ 0 📥 734
developer-tools

Gateway Monitor Installer

yes999zc
通过 LaunchAgent 在 macOS 上安装、更新、运行和移除 OpenClaw Gateway Monitor 与 Gateway Watchdog。用于一键部署监控。
★ 0 📥 644