gpt4 book ai didi

GitHub API 流行存储库

转载 作者:行者123 更新时间:2023-12-04 15:13:35 25 4
gpt4 key购买 nike

用户是否可以通过 API 访问“加星最多”或“最受关注”的存储库?类似于这些页面。

github.com/popular/starred

github.com/languages/shell/most_watched

最佳答案

否:这是以用户为中心的,这意味着您将获得由用户或给定用户加星的存储库。

并且不要忘记你在叫什么"watch" is now "star" .

What used to be known as “Watching” is now “Starring”.
Starring is basically a way to bookmark interesting repositories.
Watching is a way to indicate that you want to receive email or web notifications on a Repository.



虽然搜索 GUI 现在将“星星”作为排序顺序公开(参见“ Get sorted github repository search results by “some” attribute(the number of forks or stars)”,2013 年 2 月),但 search API (来自 V2 的一个端口)是唯一一个提到 "stars" as a sort order for repositories .
GET /legacy/repos/search/:keyword?sort=stars

(这应该是 work both for public GH and GHE: GitHub for enterprise ,但需要一个关键字,并且不遵循 v3 分页模式。此方法每页最多返回 100 个结果,并且可以使用 start_page 参数获取页面。)

Aditya Mehta指出 in the comments :

Here is the query to find repositories with the highest number of stars, sorted by star count.
api.github.com/search/repositories?q=stars:%3E1&sort=stars

关于GitHub API 流行存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13716053/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com