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

I would like to report a bug related to the 's' parameter. #252

Open
ddwego opened this issue Sep 20, 2024 · 0 comments
Open

I would like to report a bug related to the 's' parameter. #252

ddwego opened this issue Sep 20, 2024 · 0 comments

Comments

@ddwego
Copy link

ddwego commented Sep 20, 2024

Before you open an issue:

  • [yes ] I have the latest version. (Check: ddgs version. Update: pip install -U duckduckgo_search)
  • [yes ] I tried reinstalling the library. (pip install -I duckduckgo_search)
  • [yes ] https://duckduckgo.com is accessible in my browser
  • [yes ] I tried using a proxy (the site may block ip for a while)

Describe the bug

Firstly, I understand that the 's' parameter (used for pagination with 'start') cannot be passed directly, and only the 'max_results' parameter can be passed. In the method, slist.extend(range(23, max_results, 50)) is used to control the 's' parameter. I haven't encountered any issues before, although I'm not sure why it was set to 23.

However, recently, I noticed an incorrect search result. Here is my query: DDGS().text("site:www.midge.co.jp", safesearch="off", backend="html", max_results=50)
But it only returns 4 results, whereas DuckDuckGo's website returns more than 10 results.

I tried modifying the method in the class, changing the 's' parameter to 5, and was able to retrieve more results afterward.

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

1 participant