[英]Listing all collaborators of Github repository
I am trying to fetch all the users who have contributed to a given repository on github within a python script. 我正在尝试在python脚本中获取对github上给定存储库做出贡献的所有用户。 I have made calls to the Github API using urllib but it returns only a pre-defined list(and probably not a complete list) for each repository.
我已经使用urllib调用了Github API,但它为每个存储库仅返回了一个预定义列表(可能不是完整列表)。
My calls look like 我的电话看起来像
https://api.github.com/repos/jquery/jquery/contributors?page=2?access_token=fff https://api.github.com/repos/jquery/jquery/contributors?page=2?access_token=fff
https://api.github.com/repos/jquery/jquery/contributors?page=1?access_token=fff https://api.github.com/repos/jquery/jquery/contributors?page=1?access_token=fff
However, both of them point to the same json data. 但是,它们都指向相同的json数据。
So how should I list all contributors of the repo? 那么,我应该如何列出回购的所有参与者?
PS: I have input only in the form of https://github.com/jquery/jquery.git
. PS:我仅以
https://github.com/jquery/jquery.git
的形式输入。
Adding the page number with an ?page=1
works for me. 对我来说,添加带有
?page=1
是可行的。 From the Github Developer Guides . 摘自Github开发者指南 。
https://api.github.com/repos/jquery/jquery/contributors?page=2&?access_token=fff
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.