Closed mseeger closed 8 months ago
BTW: Is this project still maintained? The last release was in 2022, and there are 49 open issues with no comments on them at all.
I really like the autocomplete, etc., but if bugs are not fixed even if they are reported, I'd look for alternatives.
There's some details in the docs about how to get the count and to use it. Feel free to send in a PR if you find it not working according to what's documented there -- be sure to at-mention me if you do.
When applied to
search.code
, thepaged
wrapper does not stop trying to retrieve extra pages. It has to be stopped manually by counting the number of results retrieved.Here is some code using
requests
:This gives:
Pagination works fine: If the number of results per page is less than the total number of results, the header contains a link to a second page. Otherwise, it does not. I think the
paged
wrapper should recognize there are no further pages and stop.And here is the
ghapi
code:This gives:
It then breaks with an error: