Live data from Hacker News

Show HN: Ddgr – search DuckDuckGo from your terminal

github.com

21–30 of 53 posts

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#21
post #2

ddgr is a cmdline utility to search DuckDuckGo from the terminal. While googler is extremely popular among cmdline users, in many forums the need of a similar utility for privacy-aware DuckDuckGo came up. DuckDuckGo Bangs are super-cool too! So here's ddgr for you! Unlike the web interface, you can specify the number of search results you would like to see per page; more convenient than skimming through 30-odd search…

Great. Well done on this. I now have a new favourite dictionary on my zsh CLI thus: alias -g define='BROWSER=w3m ddgr \!wordnik ' Thank you!

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#22
post #2

ddgr is a cmdline utility to search DuckDuckGo from the terminal. While googler is extremely popular among cmdline users, in many forums the need of a similar utility for privacy-aware DuckDuckGo came up. DuckDuckGo Bangs are super-cool too! So here's ddgr for you! Unlike the web interface, you can specify the number of search results you would like to see per page; more convenient than skimming through 30-odd search…

Great. Well done on this. I now have a new favourite dictionary on my zsh CLI thus: alias -g define='BROWSER=w3m ddgr \!wordnik ' Thank you!

Thanks for sharing this.

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#24

What’s so good about DDG? I’ve used it a few times but i still don’t get the appeal to it

The no tracking policy, and the large amount of built-in features (such as bang-searches). They also don't make life hard for Tor users with endless captcha (there's even an onion service for DDG).

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#25
post #18

Earlier quoted context omitted.

>A big advantage of ddgr over googler is DuckDuckGo works over the Tor network. I'm not sure I follow. Is there an option to route this command over Tor? DuckDuckGo has a dot onion but queries on DuckDuckGo.com aren't routed over Tor.

No, it doesn't mean by default routing over Tor. There's an option to specify proxy which you can use to route your ddgr searches using the Tor network. However, Google blocks that.

Google doesn't /block/ Tor, they just make life difficult for users by giving endless captcha depending on what exit node you have (similar to what Cloudflare did until quite recently).

But maybe you're referring to API access? I'm not sure if Tor users are outright blocked (and if the block is any different to other "abusive" IPs).

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#27

Are the bang searches supposed to always open a gui browser? Because they seem that way. Search Hacker News for "ddgr" and it opens up (in my case) a tab on firefox: ddgr \!hn ddgr

There's no such hard-coding. For me it opens in w3m. Probably you have BROWSER defined to a GUI browser.

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#28
post #25
post #18

Earlier quoted context omitted.

No, it doesn't mean by default routing over Tor. There's an option to specify proxy which you can use to route your ddgr searches using the Tor network. However, Google blocks that.

Google doesn't /block/ Tor, they just make life difficult for users by giving endless captcha depending on what exit node you have (similar to what Cloudflare did until quite recently). But maybe you're referring to API access? I'm not sure if Tor users are outright blocked (and if the block is any different to other "abusive" IPs).

Please try it out with googler.

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#29

Are the bang searches supposed to always open a gui browser? Because they seem that way. Search Hacker News for "ddgr" and it opens up (in my case) a tab on firefox: ddgr \!hn ddgr

With bangs, I'm getting a new tab in Firefox as well.

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#30

Are the bang searches supposed to always open a gui browser? Because they seem that way. Search Hacker News for "ddgr" and it opens up (in my case) a tab on firefox: ddgr \!hn ddgr

With bangs, I'm getting a new tab in Firefox as well.

What's the output of `echo $BROWSER`?
Post reply on HN