github
github copied to clipboard
Pagination does not seem usable
If I execute a query like:
allRepos <-
GH.github
(OAuth $ fromString $ T.unpack githubToken)
GH.searchReposR
"stars:>1000"
1
As soon as I increase the fetch count from 1 to 2 I'm getting rate limit errors.
Shouldn't there be a way to specify the rate at which the pages are fetched?
Is there a way to only request the second page to work around this issue?
Hi @ad-si,
I added pagination, as an improvement over only being able to access the first thirty results. I'm not sure why setting the minimum number of results to two uses up your API limits, maybe github is really mean with how it counts search complexity?
I'm not a maintainer, but I'm sure a PR to add a page number parameter would be welcome.