4 ms·
I thought maybe this would be an actual terminal client, as in a way to search DDG via the terminal.
by robgibbons 7y ago
I thought maybe this would be an actual terminal client, as in a way to search DDG via the terminal.
- tracerbulletx 7y agohttps://github.com/jarun/ddgr https://github.com/jarun/ddgr
- atupis 7y agoNice does it support piping results to firefox?
- apjana 7y agoYes, you can open the results in FF.
- sdan 7y agoThis is what I was looking for (although honestly I probably won't use this often... unless I get used to it). Thanks!
- AdrienLemaire 7y agoYou just made my day, this is awesome! Thanks
- dredmorbius 7y agoNice, 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 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).
- dredmorbius 7y agoNB: that should be "&kd=-1", not "fd". ddg () { w3m https://duckduckgo.com/lite?q="$*&kd=-1" }
- k1e 7y agoIt uses DDG json api, which gives different search result than their web version in a lot of cases. https://api.duckduckgo.com/api 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.