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

Pagination? #29

Closed
Quant1um opened this issue Mar 31, 2019 · 1 comment
Closed

Pagination? #29

Quant1um opened this issue Mar 31, 2019 · 1 comment
Labels

Comments

@Quant1um
Copy link

Is it possible to specify page parameter for request (for example, &pid=2 for gelbooru)?

@AtoraSuunva
Copy link
Owner

You can specify a page in the options

booru.search('sb', ['cat'], {page: 2})

You can also use <SearchResults>.nextPage()

booru.search('sb', ['cat'])
    .then(res => res.nextPage())
    .then(res => console.log('page two results', res))

(I'll have to update the docs later, but the parts i've linked to should be accurate)

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

No branches or pull requests

2 participants