TeamNewPipe / web-api

REST API providing external data feeds for the NewPipe website. Written as a micro service. In Python.
MIT License
22 stars 9 forks source link

Contributors count is wrong #3

Closed TobiGr closed 6 years ago

TobiGr commented 6 years ago

The number of contributors appears to be the monthly number of contributors and not the total. I couldn't find any matching entry in the GitHub API Docs (all were referring to the monthly one). This stackoverflow question could help us to fix it.

TheAssassin commented 6 years ago

Displaying them one per page doesn't scale, it'd require n requests for n contributors. We could use something like https://api.github.com/repos/TeamNewPipe/NewPipe/contributors?per_page=10000, using a ridiculously high number.

TobiGr commented 6 years ago

Yes, that's right. The maximum number is 100. We have 198 contributors right now. We could start at 190 and get 10 or 20 per page. Then we can get the length of the JSON object and do a little math :)