Github Graphql查询:在1000个输出后达到空指针(或10个请求*每个请求100个项目)
我是一个试图分析和挖掘GitHub存储库的团队的首席学生研究员。我们正试图为Github上托管的每个满足以下条件的项目获取(repo_所有者和repo_名称):Github Graphql查询:在1000个输出后达到空指针(或10个请求*每个请求100个项目),github,graphql,github-api,github-graphql,Github,Graphql,Github Api,Github Graphql,我是一个试图分析和挖掘GitHub存储库的团队的首席学生研究员。我们正试图为Github上托管的每个满足以下条件的项目获取(repo_所有者和repo_名称): query MyQuery { search(query: "language:Python", type: REPOSITORY, first: 100 ) { pageInfo { endCursor hasNextPage } edges { node
query MyQuery {
search(query: "language:Python", type: REPOSITORY,
first: 100
) {
pageInfo {
endCursor
hasNextPage
}
edges {
node {
... on Repository {
nameWithOwner
issues {
totalCount
}
defaultBranchRef {
target {
... on Commit {
history(first: 0) {
totalCount
}
}
}
}
}
}
}
}
}
我们可以对游标进行10次迭代。但当我们到达光标“Y3Vyc29yOjEwMDA=”时
我们得到以下回应:
{
"data": {
"search": {
"pageInfo": {
"endCursor": null,
"hasNextPage": false
},
"edges": []
}
}
}
我从Github上的快速高级搜索中了解到,该站点上目前托管着约4000000个python语言公共存储库。在遇到这个空光标之前,我们只能得到1000
请告知我们是否有解决此问题的方法。我们希望继续使用V4API,因为它的数据输出非常简单(即,它只提供我们想要的:repo_所有者和repo名称以及问题计数和提交计数)
谢谢你的帮助 这回答了你的问题吗?这回答了你的问题吗?
{
"data": {
"search": {
"pageInfo": {
"endCursor": null,
"hasNextPage": false
},
"edges": []
}
}
}