如何使用分页列出 Github public 种编程语言的存储库
How to list Github public repositories of a programming language with Pagination
我正在尝试获取 Github public 带有分页的编程语言的存储库。到目前为止,我只能使用此 url https://api.github.com/legacy/repos/search/Go?language=GO&page=2&per_page=25
获取 100 个存储库。
其中 page 和 per_page 参数不起作用,无论参数值如何,它只给我静态 100 个结果。我也尝试过“since”参数但没有成功。请帮助我如何对此进行分页。谢谢
文档中有关于 legacy API 的内容:
The Legacy Search API (described below) is deprecated and is scheduled for removal in the next major version of the API.
We recommend using the v3 Search API instead. It contains new endpoints and much more functionality.
如果您有选择,请尝试使用 v3 search repositories 端点:
https://api.github.com/search/repositories?q=language:go&page=3&per_page=100
我正在尝试获取 Github public 带有分页的编程语言的存储库。到目前为止,我只能使用此 url https://api.github.com/legacy/repos/search/Go?language=GO&page=2&per_page=25
获取 100 个存储库。
其中 page 和 per_page 参数不起作用,无论参数值如何,它只给我静态 100 个结果。我也尝试过“since”参数但没有成功。请帮助我如何对此进行分页。谢谢
文档中有关于 legacy API 的内容:
The Legacy Search API (described below) is deprecated and is scheduled for removal in the next major version of the API.
We recommend using the v3 Search API instead. It contains new endpoints and much more functionality.
如果您有选择,请尝试使用 v3 search repositories 端点:
https://api.github.com/search/repositories?q=language:go&page=3&per_page=100