>_ DevTrendsen

Language

Home

Languages

Sections

Frontend Backend Mobile DevOps AI / ML GameDev Blockchain Embedded Security
Python

Private Search Right in the Terminal: Why Developers Love ddgr

Imagine: you need to find something quickly, but opening a browser feels like too much effort, and you'd rather stay in your favorite terminal. Or you value your privacy and are looking for a Google alternative. In cases like these, ddgr becomes a real lifesaver.

What's Behind the Name?

ddgr (pronounced "dodger") is a command-line utility for searching via DuckDuckGo right from the terminal. It was developed by Arun Prakash Jana as an alternative to his own popular utility googler, but with a focus on privacy.

What makes it so good? Let's find out.

5 Reasons to Try ddgr Today

  1. Privacy by default

    • Works through the Tor network
    • Do Not Track option enabled
    • Doesn't collect user data
  2. Full-featured search without a browser

    $ ddgr python как работать с API
    

    Results are displayed right in the terminal with minimalist but convenient formatting.

  3. DuckDuckGo's killer feature — Bang commands Want to search only on a specific site? Easy!

    $ ddgr !w python generators  # Поиск в Wikipedia
    $ ddgr !gh jarun/ddgr       # Поиск на GitHub
    
  4. Flexible output configuration

    • You can specify the number of results per page (up to 25)
    • Color settings to match your terminal
    • Filter by time and region
  5. Integration with text browsers Just set an environment variable:

    export BROWSER=w3m
    

How It Works Under the Hood

ddgr is written in Python 3.8+ and is a standalone executable. It requires nothing but Python itself to run — no additional libraries needed.

Supports:

  • All major platforms (Linux, macOS, Windows)
  • Various shell environments (Bash, Zsh, Fish)
  • Request proxying

Practical Use Cases for Developers

  1. Quick documentation search Instead of switching between browser tabs:

    $ ddgr python requests documentation site:docs.python.org
    
  2. Error searching When you see an unclear error in the logs, you can search right away:

    $ ddgr "error 500 nginx" filetype:log
    
  3. Script automation JSON output allows integration with other utilities:

    $ ddgr --json "bash best practices" | jq '.[0].url'
    

How to Install?

The easiest way is via pip:

pip3 install ddgr

Or use your OS's package manager. A complete list of installation options is available in the official repository.

Verdict: Who Should Try It?

ddgr is a must-have for:

  • Developers who live in the terminal
  • Privacy enthusiasts
  • DuckDuckGo fans
  • Those tired of switching between windows

Try it right now — it might just be the tool that makes your workflow a little more convenient!

Related projects