{"id":49085008,"url":"https://github.com/wangjs-jacky/github-hot-repos","last_synced_at":"2026-04-20T14:36:56.460Z","repository":{"id":346699699,"uuid":"1191202656","full_name":"wangjs-jacky/github-hot-repos","owner":"wangjs-jacky","description":"GitHub Trending 自动化采集项目，使用 Qwen AI 生成分析报告 | 在线访问: openxx.ai/hot-github","archived":false,"fork":false,"pushed_at":"2026-04-16T03:48:31.000Z","size":1552,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-16T05:45:57.752Z","etag":null,"topics":["ai-analysis","automation","github","github-actions","github-api","qwen","trending"],"latest_commit_sha":null,"homepage":"https://openxx.ai/hot-github","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangjs-jacky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-25T02:35:12.000Z","updated_at":"2026-04-16T03:48:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wangjs-jacky/github-hot-repos","commit_stats":null,"previous_names":["wangjs-jacky/test-collector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wangjs-jacky/github-hot-repos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjs-jacky%2Fgithub-hot-repos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjs-jacky%2Fgithub-hot-repos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjs-jacky%2Fgithub-hot-repos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjs-jacky%2Fgithub-hot-repos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangjs-jacky","download_url":"https://codeload.github.com/wangjs-jacky/github-hot-repos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangjs-jacky%2Fgithub-hot-repos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32051027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-analysis","automation","github","github-actions","github-api","qwen","trending"],"created_at":"2026-04-20T14:36:54.853Z","updated_at":"2026-04-20T14:36:56.447Z","avatar_url":"https://github.com/wangjs-jacky.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub 热门仓库采集器\n\n\u003e 🚀 自动化采集 GitHub 热门仓库，使用 Qwen AI 生成分析报告\n\n**[🌐 在线访问](https://openxx.ai/hot-github)** | **[📦 GitHub 仓库](https://github.com/wangjs-jacky/github-hot-repos)**\n\n## 功能特性\n\n- 🔍 **智能搜索** - 使用 GitHub Search API 搜索符合条件的仓库\n- 🎯 **精准筛选** - 支持按创建时间、Stars 数、编程语言筛选\n- 📊 **分批采集** - 突破 1000 条限制，按 Stars 区间分批获取\n- 🤖 **AI 分析** - 使用 Qwen（通义千问）生成仓库分析报告\n- ⏰ **定时采集** - GitHub Actions 自动运行\n\n## 筛选条件\n\n默认采集条件：\n- **创建时间**：2025年1月1日以后\n- **Stars 数**：≥ 5000\n\n## 快速开始\n\n### 1. 安装依赖\n\n```bash\nnpm install\n```\n\n### 2. 配置环境变量\n\n```bash\n# 复制环境变量模板\ncp .env.example .env\n\n# 编辑 .env 填入以下内容\nQWEN_API_KEY=your_qwen_api_key\nGITHUB_TOKEN=your_github_token  # 可选，也可使用 gh auth login 登录\n```\n\n### 3. 测试 API 连通性\n\n```bash\nnpm run test-api\n```\n\n### 4. 运行采集\n\n```bash\n# 默认采集（最多 1000 条）\nnpm run collect\n\n# 分批采集（突破 1000 条限制，按 Stars 区间分批）\nnpm run collect:batch\n\n# 只采集 TypeScript 项目\nnpm run collect:ts\n\n# 只采集 Python 项目\nnpm run collect:py\n```\n\n## 命令行选项\n\n```bash\nnode scripts/collect.mjs [选项]\n\n选项:\n  --batch, -b          分批采集（按 stars 区间，可获取更多结果）\n  --created-after, -c  创建时间筛选（默认: 2025-01-01）\n  --min-stars, -s      最小 stars 数（默认: 5000）\n  --language, -l       语言筛选（如: TypeScript, Python）\n  --max-pages, -p      每个区间的最大页数（默认: 10）\n  --help, -h           显示帮助信息\n```\n\n### 示例\n\n```bash\n# 采集 2025年3月后创建的项目\nnode scripts/collect.mjs -c 2025-03-01\n\n# 采集 Stars \u003e 10000 的项目\nnode scripts/collect.mjs -s 10000\n\n# 采集 Go 语言项目，限制 5 页\nnode scripts/collect.mjs -l Go -p 5\n```\n\n## 项目结构\n\n```\n├── .github/workflows/\n│   └── collect.yml      # GitHub Actions Workflow\n├── scripts/\n│   ├── collect.mjs      # 数据采集脚本（GitHub Search API）\n│   ├── process.mjs      # AI 处理脚本\n│   ├── test-api.mjs     # API 测试脚本\n│   └── __tests__/       # 测试用例\n├── output/              # 采集的数据（JSON）\n│   └── trending.json\n├── trending/            # AI 分析结果（Markdown）\n│   └── owner-repo/\n│       └── README.md\n└── .env                 # 环境变量\n```\n\n## GitHub API 速率限制\n\n| API 类型 | 限制 | 说明 |\n|----------|------|------|\n| Search API | 30 次/分钟 | 主要瓶颈 |\n| Core API | 5000 次/小时 | 充足 |\n\n脚本已内置速率限制处理，每次请求间隔 2.1 秒。\n\n## GitHub Actions 自动化\n\n### 定时任务\n\n- **触发时间**：每天 UTC 0:00（北京时间 8:00）\n- **采集模式**：增量采集（跳过已处理的仓库）\n\n### 手动触发\n\n在 GitHub Actions 页面选择 \"Collect GitHub Trending\" workflow，可选择：\n\n| 参数 | 说明 |\n|------|------|\n| **mode** | `daily` - 增量采集\u003cbr\u003e`batch` - 分批采集（按 Stars 区间）\u003cbr\u003e`full` - 完整采集 |\n| **language** | 语言筛选（留空为全部） |\n\n### Secrets 配置\n\n在仓库 Settings → Secrets and variables → Actions 中添加：\n\n| Secret | 说明 |\n|--------|------|\n| `QWEN_API_KEY` | 通义千问 API Key（必填） |\n| `GITHUB_TOKEN` | 自动提供，无需配置 |\n\n### 执行流程\n\n1. 采集 GitHub 热门仓库数据（创建时间 ≥ 2025-01-01，Stars ≥ 5000）\n2. 调用 Qwen API 生成分析报告\n3. 自动提交到仓库\n\n## 许可证\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangjs-jacky%2Fgithub-hot-repos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangjs-jacky%2Fgithub-hot-repos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangjs-jacky%2Fgithub-hot-repos/lists"}