on-internet
← Community

How can I handle 'request is too large for API to list' error?

Stack Overflow ·

I want to get a list of contributors to the /torvalds/linux repository on GitHub. But I receive this error that the result is too large and API can't list it. What should I do? Specifically, I write this code: import requests from pprint import pprint response = requests.get('https://api.github.com/repos/torvalds/linux/contributors', auth=(Github_username, Github_password)) pprint(response.json()) I get this as output: {'documentation_url': 'https://developer.github.com/v3/repos/#list-contributors', 'message': 'The history or contributor list is too large to list contributors ' 'for this repos

Comments

Sign in or sign up to comment and upvote.

No comments yet.