Piyush Deshmukh
Piyush Deshmukh

Reputation: 529

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. 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.

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=1?access_token=fff

However, both of them point to the same json data.

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.

Upvotes: 1

Views: 6457

Answers (1)

Arnold Stoba
Arnold Stoba

Reputation: 343

Adding the page number with an ?page=1 works for me. From the Github Developer Guides.

https://api.github.com/repos/jquery/jquery/contributors?page=2&access_token=fff

Upvotes: 3

Related Questions