News for hackers. Stuff that matters.
Re:DuckDuckGo Terminal Emulator by bluethunder on Thursday December 06, 2012 @03:40AM (#4880899)
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"

Re:DuckDuckGo Terminal Emulator by _b8r0 on Thursday December 06, 2012 @03:57AM (#4880945)
This was what I was hoping for rather than an ascii terminal style search. Does DDG have an API?
Re:DuckDuckGo Terminal Emulator by Mithrandir on Thursday December 06, 2012 @04:11AM (#4880986)
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.
Re:DuckDuckGo Terminal Emulator by lsiebert on Thursday December 06, 2012 @05:56AM (#4881273)
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.
Re:DuckDuckGo Terminal Emulator by ville on Thursday December 06, 2012 @07:26PM (#4884697)
What are the ways to gain revenue using the website DDG uses?
Re:DuckDuckGo Terminal Emulator by jlgreco on Thursday December 06, 2012 @03:49PM (#4883715)
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?
Re:DuckDuckGo Terminal Emulator by angryasian on Thursday December 06, 2012 @04:00AM (#4880952)
Re:DuckDuckGo Terminal Emulator by lloeki on Thursday December 06, 2012 @04:14AM (#4880995)
Actually, w3m may be more apt.
Re:DuckDuckGo Terminal Emulator by thibauts on Thursday December 06, 2012 @06:49AM (#4881393)
It is easily doable with a few lines of python. I gave it a quick shot: https://github.com/thibauts/duckduckgo
Re:DuckDuckGo Terminal Emulator by SageRaven on Thursday December 06, 2012 @11:37AM (#4882396)
There's a unix utility called "surfraw" that does this. I don't know if it support DDG yet, but it's very cool.
Re:DuckDuckGo Terminal Emulator by bct on Thursday December 06, 2012 @12:22PM (#4882626)
All surfraw seems to do is generate the URL for the search and opens it in a browser. Disappointing :(
Re:DuckDuckGo Terminal Emulator by TallGuyShort on Thursday December 06, 2012 @01:40PM (#4883076)
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.
Re:DuckDuckGo Terminal Emulator by S4M on Thursday December 06, 2012 @04:15AM (#4880999)
For this particular example, why don't you use just ddg reviews samsung "note 2" ?
Re:DuckDuckGo Terminal Emulator by bluethunder on Thursday December 06, 2012 @05:10AM (#4881147)
You are right. Bad example. I was just trying to do something with pipes to illustrate the point.