summaryrefslogtreecommitdiff
path: root/.helix
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2026-06-01 11:01:23 +0200
committerBnyro <bnyro@tutanota.com>2026-06-10 16:49:56 +0200
commitf4c63c8eb03db3b880a5afe986a46dc9737c72e5 (patch)
tree5baabe3738b495cd5d584f22d390e372d2f4bada /.helix
parent26801e92af55cfef264fc34f0b84473e5bfc94cd (diff)
[feat] engines: add duckduckgo web engine as alternative to html.duckduckgo.com
html.duckduckgo.com captchas all my IPs very fast. I figured out that using duckduckgo.com works even if html.duckduckgo.com is captcha-ed, hence adding support for duckduckgo.com's general web search here. This implementation fetches the link to the first API page (i.e. ``links.duckduckgo.com/d.js?...``) from duckduckgo.com and uses the ``n`` parameter of the API to fetch all subsequent pages. This also means that it's not possible to immediately search for the third page - the first and the second page would need to be loaded first. The reason why we can't just normally use the `vqd` value is that the API URLs require an additional parameter `dp` which seems generated at server-side, so we can't build it ourselves and must scrape it from the HTML pages.
Diffstat (limited to '.helix')
0 files changed, 0 insertions, 0 deletions