Hacker News new | past | comments | ask | show | jobs | submit login

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"




This was what I was hoping for rather than an ascii terminal style search. Does DDG have an API?


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


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


What are the ways to gain revenue using the website DDG uses?


What 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?



Actually, w3m may be more apt.


It is easily doable with a few lines of python. I gave it a quick shot: https://github.com/thibauts/duckduckgo


There's a unix utility called "surfraw" that does this. I don't know if it support DDG yet, but it's very cool.


All surfraw seems to do is generate the URL for the search and opens it in a browser. Disappointing :(


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


For this particular example, why don't you use just ddg reviews samsung "note 2" ?


You are right. Bad example. I was just trying to do something with pipes to illustrate the point.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: