{"id":19098505,"url":"https://github.com/jiannei/github-trending","last_synced_at":"2025-04-30T15:26:09.964Z","repository":{"id":103619950,"uuid":"320202402","full_name":"jiannei/github-trending","owner":"jiannei","description":"Github trending crawling based on lumen.","archived":false,"fork":false,"pushed_at":"2021-05-30T11:51:44.000Z","size":90,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T04:42:11.117Z","etag":null,"topics":["crawler","github-trending","lumen","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiannei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-12-10T08:07:15.000Z","updated_at":"2021-05-30T11:51:46.000Z","dependencies_parsed_at":"2023-05-24T00:00:40.183Z","dependency_job_id":null,"html_url":"https://github.com/jiannei/github-trending","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"jiannei/lumen-api-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiannei%2Fgithub-trending","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiannei%2Fgithub-trending/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiannei%2Fgithub-trending/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiannei%2Fgithub-trending/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiannei","download_url":"https://codeload.github.com/jiannei/github-trending/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251730571,"owners_count":21634413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["crawler","github-trending","lumen","php"],"created_at":"2024-11-09T03:46:06.969Z","updated_at":"2025-04-30T15:26:09.956Z","avatar_url":"https://github.com/jiannei.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Trending\n\nGithub api 没有提供 trending 查询接口，而且没有找到合适的 php 爬取实现，所以简单撸了一个。\n\n已部署到 Heroku，可以直接访问地址体验：https://crawl-github-trending.herokuapp.com/\n\nGithub Trending 原始页面：https://github.com/trending\n\n## 接口清单\n\n### Trending Api\n\n接口地址：https://crawl-github-trending.herokuapp.com/github/trending/{language}\n\n请求参数：\n\n- language：支持的编程语言；可以先调用下面的 Language 接口来查看支持哪些编程语言编码。\n- spoken_language：支持的语种编码，比如，zh 表示中文；可以先调用下面的 Spoken language 接口来查看支持哪些语种编码。\n- since：时间周期，支持 daily,weekly,monthly\n\n接口响应：\n\n```json\n{\n    \"status\": \"success\",\n    \"code\": 200,\n    \"message\": \"Success.\",\n    \"data\": [\n        {\n            \"repo\": \"/Jiannei/lumen-api-starter\",\n            \"description\": \"\",\n            \"language\": \"php\",\n            \"stars\": \"66,666\",\n            \"forks\": \"666\",\n            \"added_stars\": \"66 stars today\",\n            \"spoken_language\": \"zh\"\n        }\n    ],\n    \"error\": []\n}\n```\n\n举例：\n\n- 查询当天中文区的 php 项目趋势：https://crawl-github-trending.herokuapp.com/github/trending/php?spoken_language=zh\n- 查询本周中文区的 php 项目趋势：https://crawl-github-trending.herokuapp.com/github/trending/php?spoken_language=zh\u0026since=weekly\n\n### Spoken language\n\n接口地址：https://crawl-github-trending.herokuapp.com/github/spoken-languages\n\n接口响应：\n\n```json\n{\n    \"status\": \"success\",\n    \"code\": 200,\n    \"message\": \"Success.\",\n    \"data\": [\n        {\n            \"code\": \"zh\",\n            \"name\": \"Chinese\"\n        },\n        {\n            \"code\": \"en\",\n            \"name\": \"English\"\n        }\n    ],\n    \"error\": []\n}\n```\n\n### Language\n\n接口地址：https://crawl-github-trending.herokuapp.com/github/languages\n\n接口响应：\n\n```json\n{\n    \"status\": \"success\",\n    \"code\": 200,\n    \"message\": \"Success.\",\n    \"data\": [\n        {\n            \"code\": \"c++\",\n            \"name\": \"C++\"\n        },\n        {\n            \"code\": \"html\",\n            \"name\": \"HTML\"\n        },\n        {\n            \"code\": \"java\",\n            \"name\": \"Java\"\n        },\n        {\n            \"code\": \"javascript\",\n            \"name\": \"JavaScript\"\n        },\n        {\n            \"code\": \"php\",\n            \"name\": \"PHP\"\n        }\n    ],\n    \"error\": []\n}\n```\n\n## 其他\n\n### Packages\n\n* [lumen-api-starter](https://github.com/Jiannei/lumen-api-starter) ：基于最新版 Lumen，遵循 Repository \u0026 Service 架构的实践项目。\n* [jae-jae/querylist](https://github.com/jae-jae/querylist) ：优雅的渐进式PHP采集框架，让采集更简单一点。\n* [spatie/valuestore](https://github.com/spatie/valuestore) ：维护配置到 json文件。\n\n### 维护\n\n爬取规则维护在 `resources/crawl/github.json` 文件中，如果接口失效，欢迎提交 pull request，或者联系我 `longjian.huang@foxmail.com` 进行更新，方便后续其他同学调用。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiannei%2Fgithub-trending","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiannei%2Fgithub-trending","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiannei%2Fgithub-trending/lists"}