Hacker News new | ask | show | jobs
by dredmorbius 2424 days ago
Nice, though I suspect a bunch of the parameters can be submitted with the request.

I've got a bash function wrapper around w3m that fires off searches from the shell. It's not a dedicated DDG client, but then again, after you hit the search results, the goal is to view the results page. This does use the "lite" page, which is console-browser friendly-er

    ddg () 
    { 
        w3m https://duckduckgo.com/lite?q="$*&fd=-1"
    }
Full params list: https://duckduckgo.com/params

Nothing for number of results on page, that I see, though I've just added the toggle for no redirect ("&fd=-1", included above now).

1 comments

NB: that should be "&kd=-1", not "fd".

    ddg () 
        { 
            w3m https://duckduckgo.com/lite?q="$*&kd=-1"
        }