通过github-api获取所有GitHub用户 [英] Getting all GitHub users through github-api
本文介绍了通过github-api获取所有GitHub用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
GitHub API文档中指出了网址
The GitHub API documentation says that the url
将按照他们注册的顺序给所有用户,但我似乎只得到前135个.
will give all users in the order they signed up, but I only seem to get the first 135.
有什么想法可以获取真实的完整列表吗?
Any ideas how to get the real full list?
推荐答案
请在您的GET请求中使用since
参数.
Please use since
parameter in your GET request.
https://api.github.com/users?since=XXX
可能是通过这种方式来限制处理此类请求所需的资源.没有这种限制,它只是要求进行 DoS 攻击.
Probably it's done this way to limit the resources needed to handle such request. Without such limit it's just asking for DoS attack.
这篇关于通过github-api获取所有GitHub用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文