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

Add param to start at the specific page or index #56

Closed
kenorb opened this issue Apr 24, 2018 · 6 comments
Closed

Add param to start at the specific page or index #56

kenorb opened this issue Apr 24, 2018 · 6 comments

Comments

@kenorb
Copy link

kenorb commented Apr 24, 2018

Add equivalent param to start from n page/result.

Something like:

printf "n\nn\n" | ddgr "foo"

but in form of parameter, like: -p PAGE_NUM, so it can be combined with JSON param, as the following doesn't work anymore:

$ printf "n\nn\n" | ddgr --json "foo"
@jarun
Copy link
Owner

jarun commented Apr 24, 2018

The is not possible because of the way ddg needs the queries to be formed. Each response arrives with a unique token that has to be used for the previous and next results.

@jarun jarun closed this as completed Apr 24, 2018
@brandong954
Copy link

brandong954 commented May 10, 2019

How is one suppose to get more than 25 results when in non-interactive mode then? @jarun @kenorb

@jarun
Copy link
Owner

jarun commented May 10, 2019

Try -n 30.

@jarun
Copy link
Owner

jarun commented May 10, 2019

Ahh OK, I see it's blocked. I guess it's not possible then.

@brandong954
Copy link

What are the limitations?

@jarun
Copy link
Owner

jarun commented May 10, 2019

The max number of items returned per page is 25.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants