4 ms·
I think this might be more useful the other way around. Put ddg inside a linux shell and let me interoperate with linux commands. eg. ddg reviews samsung not
by bluethunder 14y ago
I think this might be more useful the other way around.
Put ddg inside a linux shell and let me interoperate with linux commands.
eg. ddg reviews samsung note | grep "note 2"
- iuguy 14y agoThis was what I was hoping for rather than an ascii terminal style search. Does DDG have an API?
- angryasian 14y agoyou can use lynx http://en.wikipedia.org/wiki/Lynx_(web_browser) http://en.wikipedia.org/wiki/Lynx_(web_browser)
- lloeki 14y agoActually, w3m may be more apt.
- Mithrandir 14y agoDDG does have an API for the goodies, but not for the search results because they come from a variety of sources, some of which don't allow sub-licensing.
- lsiebert 14y agoSeems like you could have a search API for the sources that do allow sub-licensing. But I'm not sure putting search into an API would be a good way for DDG to gain revenue.
- ville 14y agoWhat are the ways to gain revenue using the website DDG uses?
- jlgreco 14y agoWhat would be the difference between "licensing" the API for private non-commercial use only, and "licensing" the website for private non-commercial use only? I assume the TOS for the website are restrictive to satisfy the licenses they have with others, could you make an API that has equivalent terms?
- deleted 14y ago[deleted]
- S4M 14y agoFor this particular example, why don't you use just ddg reviews samsung "note 2" ?
- bluethunder 14y agoYou are right. Bad example. I was just trying to do something with pipes to illustrate the point.
- thibauts 14y agoIt is easily doable with a few lines of python. I gave it a quick shot: https://github.com/thibauts/duckduckgo https://github.com/thibauts/duckduckgo
- SageRaven 14y agoThere's a unix utility called "surfraw" that does this. I don't know if it support DDG yet, but it's very cool.
- bct 14y agoAll surfraw seems to do is generate the URL for the search and opens it in a browser. Disappointing :(
- TallGuyShort 14y agoI just got it installed and quite like it. It may not give you interactive search capabilities, but it DOES support DuckDuckGo, and the other "elvi" are quite handy. I now have a quick way of instantly opening Lisp, Java and other language docs in the terminal, and jumping straight to wikipedia articles in w3m.