github-backup icon indicating copy to clipboard operation
github-backup copied to clipboard

Only gets a limited number of starred repositories

Open alister opened this issue 10 years ago • 2 comments

The Github API uses paging on the returned JSON results, so if you have a significant number of starred repositories, you may only get a smaller number returned and therefore downloaded that you have actually starred (still public only).

  • https://developer.github.com/v3/#pagination

  • http://stackoverflow.com/questions/14057478/github-api-issue-listing-starred-repos

    https://api.github.com/users/{username}/starred?page=X&per_page=Y where X is the number of the page (defaults to 1), and Y is the page size (max 100).

Thanks for the tool!

alister avatar Sep 09 '14 22:09 alister

Ah, good catch! What's a good username to test this with? Yours?

ericlathrop avatar Sep 09 '14 22:09 ericlathrop

Yeah, why not. I've got a little over 200 starred/public repos, which I've gone through in a few pages of 100.

alister avatar Sep 09 '14 22:09 alister