Skip to content

feat: implement windowOrganicResults function and update DuckDuckGo search logic#41

Merged
karust merged 2 commits into
karust:mainfrom
subediparas5:fix/duckduckgo-non-zero-offset-fix
Jul 21, 2026
Merged

feat: implement windowOrganicResults function and update DuckDuckGo search logic#41
karust merged 2 commits into
karust:mainfrom
subediparas5:fix/duckduckgo-non-zero-offset-fix

Conversation

@subediparas5

Copy link
Copy Markdown
Contributor

Summary

  • Keep a single DuckDuckGo browser page open and click “More Results” until enough organic results are loaded.
  • Deduplicate refreshed results and apply start and limit without counting ads.
  • Preserve SERP feature extraction from the initial result page.

Why

Testing

  • make test
  • make lint
  • make test-integration (only for browser, proxy, captcha, or live-engine changes)

Checklist

  • I linked the related issue or explained why there is none.
  • I updated docs or examples for changed user-facing behavior.
  • I kept unit tests deterministic and free of browser/network dependencies.
  • I removed secrets, proxy credentials, and private logs from examples.

@karust

karust commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Nice fix, I reviewed and reproduced the problem .

I pushed one small commit on top: added fallback selector and test for "more results" button + updated HTML page used in tests.

Thanks for the contribution!

@karust
karust merged commit 5d5d135 into karust:main Jul 21, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

bug: DuckDuckGo search returning incorrect results for non-zero offsets

2 participants