Live data from Hacker News

Show HN: Ddgr – search DuckDuckGo from your terminal

github.com

1–10 of 53 posts

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

#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 results per page. The default interface is carefully designed to use minimum space without sacrificing readability.

A big advantage of ddgr over googler is DuckDuckGo works over the Tor network.

ddgr is available in the repos of many distros as well as on PyPI.

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

#5
Reminds me of surfraw:

https://gitlab.com/surfraw/Surfraw

https://wiki.archlinux.org/index.php/Surfraw

https://en.wikipedia.org/wiki/Surfraw

> Surfraw (Shell Users Revolutionary Front Rage Against the Web) is a free public domain POSIX-compliant (i.e. meant for Linux, FreeBSD etc.) command-line shell program for interfacing with a number of web-based search engines.[1] It was created in July 2000 by Julian Assange[2] and is licensed in the public domain[3] and written in the Bourne shell language.

Yes, it's apparently that Julian Assange.

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

#6
post #5

Reminds me of surfraw: https://gitlab.com/surfraw/Surfraw https://wiki.archlinux.org/index.php/Surfraw https://en.wikipedia.org/wiki/Surfraw > Surfraw (Shell Users Revolutionary Front Rage Against the Web) is a free public domain POSIX-compliant (i.e. meant for Linux, FreeBSD etc.) command-line shell program for interfacing with a number of web-based search engines.[1] It was created in July 2000 by Julian Assange[2]…

The number of dependencies is very high. From Ubuntu 18.04:

  $ sudo apt install surfraw
  Reading package lists... Done
  Building dependency tree         
  Reading state information... Done
  The following additional packages will be installed:
    libalgorithm-c3-perl libb-hooks-endofscope-perl libcache-perl libclass-accessor-chained-perl
    libclass-c3-perl libclass-c3-xs-perl libclass-data-inheritable-perl libclass-errorhandler-perl
    libclass-inspector-perl libclass-singleton-perl libdata-optlist-perl libdata-page-perl
    libdatetime-format-mail-perl libdatetime-format-w3cdtf-perl libdatetime-locale-perl libdatetime-perl
    libdatetime-timezone-perl libdevel-caller-perl libdevel-lexalias-perl libdevel-stacktrace-perl
    libeval-closure-perl libexception-class-perl libfeed-find-perl libfile-nfslock-perl
    libfile-sharedir-perl libheap-perl liblwp-authen-wsse-perl libmodule-implementation-perl
    libmodule-pluggable-perl libmro-compat-perl libnamespace-autoclean-perl libnamespace-clean-perl
    libpackage-stash-perl libpackage-stash-xs-perl libpadwalker-perl libparams-util-perl
    libparams-validate-perl libparams-validationcompiler-perl libreadonly-perl libref-util-perl
    libref-util-xs-perl libspecio-perl libsub-exporter-perl libsub-identify-perl libsub-install-perl
    liburi-fetch-perl liburi-template-perl libvariable-magic-perl libwww-opensearch-perl libxml-atom-perl
    libxml-feed-perl libxml-libxslt-perl libxml-rss-perl libxml-xpath-perl surfraw-extra
  Suggested packages:
    libtest-fatal-perl screen
  The following NEW packages will be installed:
    libalgorithm-c3-perl libb-hooks-endofscope-perl libcache-perl libclass-accessor-chained-perl
    libclass-c3-perl libclass-c3-xs-perl libclass-data-inheritable-perl libclass-errorhandler-perl
    libclass-inspector-perl libclass-singleton-perl libdata-optlist-perl libdata-page-perl
    libdatetime-format-mail-perl libdatetime-format-w3cdtf-perl libdatetime-locale-perl libdatetime-perl
    libdatetime-timezone-perl libdevel-caller-perl libdevel-lexalias-perl libdevel-stacktrace-perl
    libeval-closure-perl libexception-class-perl libfeed-find-perl libfile-nfslock-perl
    libfile-sharedir-perl libheap-perl liblwp-authen-wsse-perl libmodule-implementation-perl
    libmodule-pluggable-perl libmro-compat-perl libnamespace-autoclean-perl libnamespace-clean-perl
    libpackage-stash-perl libpackage-stash-xs-perl libpadwalker-perl libparams-util-perl
    libparams-validate-perl libparams-validationcompiler-perl libreadonly-perl libref-util-perl
    libref-util-xs-perl libspecio-perl libsub-exporter-perl libsub-identify-perl libsub-install-perl
    liburi-fetch-perl liburi-template-perl libvariable-magic-perl libwww-opensearch-perl libxml-atom-perl
    libxml-feed-perl libxml-libxslt-perl libxml-rss-perl libxml-xpath-perl surfraw surfraw-extra
  0 upgraded, 56 newly installed, 0 to remove and 0 not upgraded.
  Need to get 3,883 kB of archives.
  After this operation, 29.0 MB of additional disk space will be used.
  Do you want to continue? [Y/n] n
  Abort.

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

#7
post #3

Can you search by any duration, like googler can, or does duckduckgo prevent you from implementing that? That's my biggest complaint about ddg: can't even search by past year

I see a dropdown on a search results page that says "Any Time". On clicking it, you get the options "Past Day", "Past Week", "Past Month".

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

#8
post #6
post #5

Reminds me of surfraw: https://gitlab.com/surfraw/Surfraw https://wiki.archlinux.org/index.php/Surfraw https://en.wikipedia.org/wiki/Surfraw > Surfraw (Shell Users Revolutionary Front Rage Against the Web) is a free public domain POSIX-compliant (i.e. meant for Linux, FreeBSD etc.) command-line shell program for interfacing with a number of web-based search engines.[1] It was created in July 2000 by Julian Assange[2]…

The number of dependencies is very high. From Ubuntu 18.04: $ sudo apt install surfraw Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libalgorithm-c3-perl libb-hooks-endofscope-perl libcache-perl libclass-accessor-chained-perl libclass-c3-perl libclass-c3-xs-perl libclass-data-inheritable-perl libclass-errorhandler-perl lib…

Seems like your average Node package. CPAN was ahead of it's time.
Post reply on HN