12 ms·
DuckDuckGo as a TTY
- growt 5y agoA long time ago I wrote goosh (https://goosh.org https://goosh.org) which does the same thing for google. It's nice to see something similar for DDG. After a first test it looks like it only searches DDGs public API (so definitions, etc) and doesn't return results from the bing index (a search for "test2" e.g. turns up nothing).
- shae 5y agoat least `ls` works!
- mattfrommars 5y agoDoes anyone know end game for DuckDuckGo? Are they waiting to be acquired or hoping they will replace Google at what they do best? I want to use DDG but it just doesn't cut it for regular use.
- max0563 5y agoThat is what I thought too when I first started using them. "They just aren't as good as Google!". I have found this to not be the case as often as I thought it would be. In fact, 90% of my searches I'd say never require me to leave Duck Duck Go to find the answer, that includes technical queries. That isn't to say that DDG is perfect, but for the times that it isn't perfect tacking an !g or !b to the end of the search does the job.
- thinkingemote 5y agoI find they absolutely cut it for regular use, it's the irregular, special times where it doesn't but then I have to use the g! Operator
- hunter2_ 5y agoWhen visiting this using Chrome for Android, how do I open the keyboard? Typically it's just a matter of giving focus to the input area, but not in this case.
- kiwijamo 5y agoI have the same problem with Firefox for Android.
- pwdisswordfish0 5y agoThe app will have to be reimplemented in a way that doesn't screw up the input. <https://zserge.com/posts/js-editor/ https://zserge.com/posts/js-editor/>
- chillfox 5y agoVery cool. Now please let me access it over SSH.
- arthurcolle 5y agoI love this. Can I do this in my terminal without lynx
- tentacleuno 5y agoIt seems a command-line tool exists for DuckDuckGo[0], so yes. [0]: https://news.ycombinator.com/item?id=28941294 https://news.ycombinator.com/item?id=28941294
- dustyharddrive 5y agoLooks amazing, but does any search > 3 characters fail for anyone else?
- asdadsdad 5y agoyeah, it's broken for every search I tried
- tentacleuno 5y agoSee: https://news.ycombinator.com/item?id=28938998 https://news.ycombinator.com/item?id=28938998 :)
- tentacleuno 5y agoFrom what I could garner it uses the public DuckDuckGo Instant Answers API[0], which only returns results for specific queries (try "Microsoft", then try something obscure). This is most likely causing your issue. [0]: https://duckduckgo.com/api https://duckduckgo.com/api
- new_guy 5y agoSounds more like they're using mysql default settings, search is 3 characters minimum, below that it fails.
- dustyharddrive 5y agoOh, I should've noticed based on how specific the results were. Thanks!
- paxys 5y agoIt's weird that the TTY shows you search results but selecting a link takes you back to the DDG search page to search for the selected result again?
- snide 5y agoFor people that are looking for a nice search TUI, may I point you to Googler. It's made by the author of NNN and a couple other fantastic terminal tools. Highly recommend. It's amazing how clean you can make the interface https://github.com/jarun/googler https://github.com/jarun/googler Screenshot of Googler in action when it's nice and clean https://snid.es/2021OCT/YG4OXAlXg4INZWPe.png https://snid.es/2021OCT/YG4OXAlXg4INZWPe.png
- mlang23 5y agoIt looks like it doesnt respect $LINES (or something similar). On first try, the top 2 results scrolled off the screen.
- zmw 5y agoIt's a CLI, not a TUI. I put quite a bit of thought into that decision, and whether to integrate a pager. See [1]. The workarounds are (1) limit the number of results per page with -n <num>; (2) use the -r, --reverse option to show the top results last. [1] https://github.com/jarun/googler/issues/281 https://github.com/jarun/googler/issues/281
- toxik 5y agoIt would be nice if there was a way to run a terminal command without auto-scrolling. So often I run something that spits out tons of error messages, only to have to scroll back up again to find out what happened.
- apjana 5y agoAlso check if your terminal supports Shift-PgUp/PgDn to scroll up/down a page. Works in gnome terminal: https://help.gnome.org/users/gnome-terminal/stable/adv-keyboard-shortcuts.html.en https://help.gnome.org/users/gnome-terminal/stable/adv-keybo...
- circularfoyers 5y agoMight be more apt to mention the same authors version of googler for duckduckgo, https://github.com/jarun/ddgr https://github.com/jarun/ddgr.
- rexreed 5y agoI can't seem to get it to work for any non-trivial search (search results with wikipedia entries, etc)
- remram 5y agoThanks, it didn't seem to work for me either. I typed in something really obvious after seeing your comment and I finally got something to display. Shouldn't there be some kind of message if there are no results or an error? Instead of just showing the next prompt?
- richardoey 5y agoThis is weird and refreshing idea in the same time
- deathanatos 5y ago$ 2 + 2 [:66] [object Object] Never change, JavaScript, never change. /s -- Type 'm' for more results. $ m -- End of search results. Should probably read the help. Hmm. Well, learned stuff. Still don't know why the above don't work.
- throwaway984393 5y agoThey were able to create a fake TTY for searching the web, but they still don't support IPv6. https://www.reddit.com/r/duckduckgo/search/?q=ipv6&restrict_sr=1&sr_nsfw= https://www.reddit.com/r/duckduckgo/search/?q=ipv6&restrict_...
- ziddoap 5y agoFalse equivalences are fun. While both are technical issues, these are orders of magnitude apart in implementation difficulty, scale, etc. There is no reasonable comparison to be made here.
- dogecoinbase 5y agoYeesh, the ignorance of the folks in those threads. Painful. Anyways, if someone can't get to non-v6 resources, they have bigger problems than not being able to use DDG. There is a single class of operator for whom v6 deployment actually makes sense, which is large-scale ISPs for whom CGNAT presents an onerous burden on their reporting/monitoring requirements to law enforcement. Everyone else is just rolling v6 out to meet the requirement of a client (typically government) contract. It's purely additive complexity and for most people, doesn't actually solve any problems they really have.
- boondaburrah 5y agoHome internet in Japan is IPv6 only. Usually you have to sign up for a separate NAT-like-thing that the ISP runs as well, sometimes for an additional charge.
- dogecoinbase 5y agoGoogle puts IPv6 adoption rates in Japan slightly behind the US: https://www.google.com/intl/ja/ipv6/statistics.html#tab=per-country-ipv6-adoption https://www.google.com/intl/ja/ipv6/statistics.html#tab=per-... And JPNIC recently discusses how v4 translation is still necessary: https://blog.nic.ad.jp/2021/6406/ https://blog.nic.ad.jp/2021/6406/ I would be super interested to read more about 6to4 translation as an additional charge on residential service, if you have a link I could check out.
- mlang23 5y agoAs a diehard terminal user, I think this headline should interest me. However, I am assuming this is some sort of JavaScript perversion? Visiting the link with lynx gives an empty page. Can anyone explain whats going on there to a non-GUI user?
- OJFord 5y agoKeyboard doesn't open on FF Android, so I can't use it (right now) either, but it seems to be a faux shell & TUI for searching DDG. (I see green on black terminal aesthetic, $ prompt and a flashing cursor - banner text (in the 'shell') above explains I can (if the keyboard would open) run :help (or :send-feedback to tell them the keyboard doesn't w-- oh) which I assume would tell me how to query the search engine.) Yeah, presumably JS if you can't load it. Though from what I can see without typing anything it could be done in CSS. (I suppose it's probably a SPA - results loaded in place without a page reload which, to be fair, would ruin the faux shell aesthetic.)
- mlang23 5y agoThanks for taking the time to explain what you see. This sort of confirms my initial suspicion. Weird.
- deleted 5y ago[deleted]
- retube 5y agoyes it's just a webpage styled to look like a terminal. not sure what the big deal is
- tentacleuno 5y agoIt's JavaScript / jQuery, so yeah it's not going to work in Lynx.
- input_sh 5y agoMaybe this will be an alternative interface that suits you: https://github.com/jarun/ddgr https://github.com/jarun/ddgr There's also these JS-free interfaces: https://html.duckduckgo.com/html https://html.duckduckgo.com/html https://lite.duckduckgo.com/lite https://lite.duckduckgo.com/lite
- munch117 5y agos/tty/repl/g
- beermonster 5y agoAlso this[1] is nice for non-javascript interfacing with DDG. https://help.duckduckgo.com/duckduckgo-help-pages/features/non-javascript/ https://help.duckduckgo.com/duckduckgo-help-pages/features/n...
- megamix 5y agoyes!
- mullsork 5y agoFor some reason this does not work with the Vimium browser plugin. Otherwise, very cool!
- Marwari 5y agoHow to open keyboard on Android? - when visiting from Firefox
- divbzero 5y agoI was hoping for something like: ssh duckduckgo.com grep -r foo news.ycombinator.com
- streamofdigits 5y agoFor as much as I love the terminal UI, I don't think the next quantum leap in search functionality can be delivered with it. Assume you have access to an index that is objective / transparent and serves you a (typically) long list of results. The next step is really to make sense and work with the results: you need to quickly and easily filter, order, search within, group or classify or do other bulk operations with all the returned items. Just like with other "information firehose" environments, like social media feeds, email clients etc, its the "meta search" powers that matter and those are probably better served with GUI's.
- jve 5y agoIs it just me that this won't search for multiple words? Tried even in double quotes. Only single terms returns any result.
- _trampeltier 5y ago? My Firefox browser always try to open "find" if i press a any key?
- throaway46546 5y agoSame for me. It seems to be completely broken on Firefox.
- drexlspivey 5y agotwo of my favorites are: > curl wttr.in/berlin for the weather and > curl cheat.sh/python/yield for cheat sheets
- vultour 5y agoThis seems to have different result than DDG? Searching for "a320" returns mere 4 results, and anything slightly obscure returns 0.
- posix_me_less 5y agoIf using web search using textual tty interface was useful for something, I would want to do it via my existing terminal program, not via browser. But, is it useful for anything at all?
- guerrilla 5y agoI think it has a pretty small market: $ :why Because Devdas uses vimperator with Google?? I don't think they mix well. Devdas, you should try this instead.
- fifilura 5y agoI searched for "DROP TABLE search_index" and then after that everything stopped working. Did anyone else experience the same?
- AccountToUse 5y agoYes, saw that too. Functionality is really limited. It's basically a Wikipedia command line parser. For instance, "current weather in Los Angeles" brings up nothing. "Current president of the USA" brings up nothing. But 2020 World Series Champion brings up a Wikipedia style summary.
- noworld 5y agoNice, "install chrome" yields 0 results! Edit: Apparently "install" is a keyword.
- tyingq 5y agoIf I type \\+<enter> a new page opens here: https://maps.clarkcountynv.gov/openweb/?@772725,26784494,9 https://maps.clarkcountynv.gov/openweb/?@772725,26784494,9 Showing me somebody's house, their name and address, etc. Now I'm curious why. Note that I am not located anywhere near there.
- whynotkeithberg 5y agoThat is weird... does the same thing for me. I'm in CA and that's vegas suburbs. So I'm not that close either.
- noefingway 5y agoDitto that - I'm in MD
- Toadtoad 5y agoOkay, I tried a few things out and I think I understand what happened. "\" is "I'm Feeling Lucky" for a search. You can even see this in regular DuckDuckGo, for example if you search "\wikipedia". The "\+" part is more of an coincidence. If you search "\+" with the quotes[0], you can see that the Clark County page is one of the first results. So, it appears that the query "\\+" is asking to search "\+" and open the top result, and that link just happens to be the result (even if it appears seconded when searching for an exact instance of "\+"). [0] https://duckduckgo.com/?q=%22%5C%2B%22&t=h_&ia=web https://duckduckgo.com/?q=%22%5C%2B%22&t=h_&ia=web
- tyingq 5y agoAh, okay. It's a different suburban Las Vegas house every time too, which is also odd. Same on the regular ddg website. The "parcelid" changes for each search of "\+" on their site.
- andrewcl 5y agotyping in the search term "meeple" does not seem to do anything.
- gauchojs 5y agoFirst test: $ 6km in miles [:1] [object Object]
- xojoc 5y agoOther threads: https://news.ycombinator.com/item?id=21383443 https://news.ycombinator.com/item?id=21383443 [2019-10-29] (80 comments) https://news.ycombinator.com/item?id=4880240 https://news.ycombinator.com/item?id=4880240 [2012-12-06] (100 comments) All discussions: https://discussions.xojoc.pw/q/duckduckgo.com/tty/ https://discussions.xojoc.pw/q/duckduckgo.com/tty/ Discussions with similar title: https://discussions.xojoc.pw/q/DuckDuckGo%20as%20a%20TTY https://discussions.xojoc.pw/q/DuckDuckGo%20as%20a%20TTY Archive: https://archive.md/newest/https://duckduckgo.com/tty/ https://archive.md/newest/https://duckduckgo.com/tty/
- luke2m 5y agoI would love this as an actual command or even a telnet/ssh server!