Search Duck Duck Go from linux terminal

09/09/2018

I knew I’d heard of searching Google from the terminal before, but I try to use Duck Duck Go whenever possible, banging Start Page then Google if DDG doesn’t give me what I need; which is getting less frequent

So a search result yesterday returned this awesome useful terminal function DDGR

Github with details and destructions found here: https://github.com/jarun/ddgr

DDGR - search from linux command line

Features

  • Fast and clean (no ads, stray URLs or clutter), custom color
  • Designed to deliver maximum readability at minimum space
  • Specify the number of search results to show per page
  • Navigate result pages from omniprompt, open URLs in browser
  • Search and option completion scripts for Bash, Zsh and Fish
  • DuckDuckGo Bang support (along with completion)
  • Open the first result directly in browser (as in I’m Feeling Ducky)
  • Non-stop searches: fire new searches at omniprompt without exiting
  • Keywords (e.g. filetype:mime, site:somesite.com) support
  • Limit search by time, specify region, disable safe search
  • HTTPS proxy support, Do Not Track set, optionally disable User Agent
  • Support custom url handler script or cmdline utility
  • Comprehensive documentation, man page with handy usage examples
  • Minimal dependencies

Dependencies

  • ddgr requires Python 3.4 or later. Only the latest patch release of each minor version is supported.

Ubuntu install

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

to run

ddgr gamer geek news

enjoy!