We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在 crawler.py 的 fetch_user_data 函数中 next_query = query.organ_all_query_with_pager % ( organization, helpers.get_page_cursor(result, "user_repository")) 疑似应为 next_query = query.user_all_query_with_pager % ( user, helpers.get_page_cursor(result, 'user_repository'))
next_query = query.organ_all_query_with_pager % ( organization, helpers.get_page_cursor(result, "user_repository"))
next_query = query.user_all_query_with_pager % ( user, helpers.get_page_cursor(result, 'user_repository'))
在 helpers.py 的 get_page_cursor 函数中 if mode == "user_repository": return result["data"]["organization"]["repositories"]["pageInfo"]["endCursor"] 疑似应为 return result["data"]["user"]["repositories"]["pageInfo"]["endCursor"]
if mode == "user_repository": return result["data"]["organization"]["repositories"]["pageInfo"]["endCursor"]
return result["data"]["user"]["repositories"]["pageInfo"]["endCursor"]
此外,当用户 repository 过多时(例如 cloudwu),抓取到的数据呈现 {'data': {'organization': None}, 'errors': [{'message': "Could not resolve to an Organization with the login of 'cloudwu'.", 'type': 'NOT_FOUND', 'path': ['organization'], 'locations': [{'line': 3, 'column': 3}]}]} 因此访问 'user' key 会出错。
{'data': {'organization': None}, 'errors': [{'message': "Could not resolve to an Organization with the login of 'cloudwu'.", 'type': 'NOT_FOUND', 'path': ['organization'], 'locations': [{'line': 3, 'column': 3}]}]}
The text was updated successfully, but these errors were encountered:
正在修复1.2,3的问题我等会看一下。
Sorry, something went wrong.
5ffc846
No branches or pull requests
在 crawler.py 的 fetch_user_data 函数中
next_query = query.organ_all_query_with_pager % ( organization, helpers.get_page_cursor(result, "user_repository"))
疑似应为
next_query = query.user_all_query_with_pager % ( user, helpers.get_page_cursor(result, 'user_repository'))
在 helpers.py 的 get_page_cursor 函数中
if mode == "user_repository": return result["data"]["organization"]["repositories"]["pageInfo"]["endCursor"]
疑似应为
return result["data"]["user"]["repositories"]["pageInfo"]["endCursor"]
此外,当用户 repository 过多时(例如 cloudwu),抓取到的数据呈现
{'data': {'organization': None}, 'errors': [{'message': "Could not resolve to an Organization with the login of 'cloudwu'.", 'type': 'NOT_FOUND', 'path': ['organization'], 'locations': [{'line': 3, 'column': 3}]}]}
因此访问 'user' key 会出错。
The text was updated successfully, but these errors were encountered: