Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pagination (continue) #98

Open
tbm opened this issue Dec 18, 2020 · 3 comments
Open

Support pagination (continue) #98

tbm opened this issue Dec 18, 2020 · 3 comments

Comments

@tbm
Copy link
Contributor

tbm commented Dec 18, 2020

.search("a", results=1000) will lead to 500 results since 500 is the maximum. However, a continue parameter is supported ("When more results are available, use this to continue"), which I suppose allows for paging through more results.

It would be nice if this was somehow supported (maybe as an iterator that does another query when needed).

@barrust
Copy link
Owner

barrust commented Dec 18, 2020

This is definitely something that could be included. The library does something similar to this for the categorymembers() function so it could be added to this and, I would assume, other functions.

Another place we do this is in mediawikipage.py in the _continued_query() function. So it would likely be combining the wiki_request() and _continued_query() functions in some way.

I don't know how much time I have at the moment to make this change, but any support is welcome.

@shay314
Copy link

shay314 commented Nov 20, 2023

Hey, is there a plan to support this feature?
Can be very useful.

Thanks,

@barrust
Copy link
Owner

barrust commented Nov 20, 2023

I would love to add it but I haven't had time to implement anything yet. Not sure when time will become available. Perhaps over the holidays but no guarantees.

Any help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants