How to Search 'DuckDuckGo' from Command Line

DuckDuckGo is an Internet search engine that lets the user search protecting its privacy, and show the best results instead of giving outputs based on previous searches. Googler is one of the popular utility to search google from the command line, but in this article I will show you "ddgr" tool to search "DuckDuckGo" from linux command line.

Features

Fast and clean

No Ads

Navigate results from terminal, and open URLs in browser

Keywords

Use filters

Nice documentation

HTTPS proxy support, Do Not Track set, optionally disable User Agent

Installation

'ddgr' requires Python 3.3 or later. Only the latest patch release of each minor version is supported. Here are the installation steps for the following distributions (on their latest release up to 11/2017):

Ubuntu

Execute the following commands separately:

$ sudo add-apt-repository ppa:twodopeshaggy/jarun $ sudo apt-get update $ sudo apt-get install ddgr

Arch

Install Git if you don't have it:

$ sudo pacman -S git

Clone the repository:

$ git clone https://github.com/jarun/ddgr.git

Go to ddgr folder and install it:

$ cd /ddgr $ sudo make install

Install python-requests:

$ sudo pacman -S python-requests

Fedora

Install Git if you don't have it:

$ sudo dnf install git

Clone the repository:

$ git clone https://github.com/jarun/ddgr.git

Go to ddgr folder and install it:

$ cd /ddgr $ sudo make install

Examples to use ddgr

Search 'linoxide'

$ ddgr linoxide

Search 'linoxide' and open first result in browser

$ ddgr -j lucky linoxide

Search specific website

$ ddgr -w ebay.com laptop

Search specific file type

$ ddgr resume filetype:pdf

You can find more examples and official documentation in the official repository. Hope you find this tool interesting. Happy privacy-aware searching on DuckDuckGo :-)