Hacker News new | ask | show | jobs
by tracerbulletx 2424 days ago
https://github.com/jarun/ddgr
5 comments

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).

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

    ddg () 
        { 
            w3m https://duckduckgo.com/lite?q="$*&kd=-1"
        }
This is what I was looking for (although honestly I probably won't use this often... unless I get used to it).

Thanks!

It uses DDG json api, which gives different search result than their web version in a lot of cases.

https://api.duckduckgo.com/api

>This API does not include all of our links, however. That is, it is not a full search results API or a way to get DuckDuckGo results into your applications beyond our instant answers. Because of the way we generate our search results, we unfortunately do not have the rights to fully syndicate our results, free or paid. For the same reason, we cannot allow framing our results without our branding. Please see our partnerships page for more info on guidelines and getting in touch with us.

Nice does it support piping results to firefox?
Yes, you can open the results in FF.
You just made my day, this is awesome! Thanks