TopRatedTech

Tech News, Gadget Reviews, and Product Analysis for Affiliate Marketing

TopRatedTech

Tech News, Gadget Reviews, and Product Analysis for Affiliate Marketing

This Linux Tool Lets You Search DuckDuckGo in the Terminal

Abstract

  • ddgr allows you to search DuckDuckGo through the terminal, presenting clear outcomes with URLs and descriptions.
  • You possibly can set up ddgr with a package deal managers like apt or Homebrew.
  • Use ddgr to go looking effectively, open ends in your browser, and refine searches with numerous command-line choices.

Ever needed to go looking the online with out leaving your Linux terminal? The ddgr program allows you to do exactly that utilizing the DuckDuckGo search engine.

What Is ddgr?

ddgr is a command-line software that allows you to search DuckDuckGo, the privacy-respecting alternative to Google. DuckDuckGo sources its information from Bing and different sources, to supply wonderful outcomes.

When you run a search in ddgr, you’ll see an inventory of outcomes with an important data in every: URL, title, and outline. You possibly can then use the interactive interface to open any of those ends in your browser.

When you’re a giant fan of the terminal, you’ll be spending plenty of time in it, and ddgr supplies plenty of comfort. By presenting its ends in clear, targeted textual content, it allows you to think about what issues most: selecting the outcome that serves you finest.

Three items at the end of a list of search results, each showing a title, domain, and description.

ddgr prominently shows the area of every outcome, so you possibly can deal with the supply. However you possibly can configure the software to indicate full URLs, and alter its habits in lots of different methods.

Learn how to Set up ddgr

ddgr is extensively accessible through nearly any package deal supervisor you may be utilizing. You possibly can set up it on Ubuntu utilizing apt:

        sudo apt set up dodger

On macOS, your best option is Homebrew:

        brew set up ddgr

There’s additionally a snap package and you’ll set up ddgr utilizing pip3 if these choices are unsuitable. Full directions can be found within the undertaking’s README, together with particulars on the best way to construct this system from supply.

Utilizing ddgr to Search the Internet

As soon as put in, you possibly can run ddgr from the command line and move search phrases as parameters, for instance:

        ddgr vampire squid

You’ll see an inventory of ten outcomes and a immediate for additional enter. To open a lead to your browser, enter the index quantity alongside it.

The particular browser that ddgr makes use of will rely in your surroundings. By default, ddgr opened ends in Chrome for me, and this was a fast and easy course of. If you wish to use a terminal-based browser as a substitute, you are able to do so by setting the BROWSER surroundings variable:

        BROWSER=lynx ddgr bobtail squid

You possibly can run one other search utilizing ddgr’s immediate, which can be helpful if you happen to begin it and not using a search question. Simply kind your search question and press Enter.

There are various different instructions you possibly can run through the interactive immediate; record all of them by typing ? and hitting Enter. The record of ten outcomes that ddgr reveals is simply the primary web page. When you’re all for different pages of your outcomes, use n, p, and f to maneuver to the following, earlier, or first web page. When you’ve discovered a great outcome, however don’t wish to open it immediately, you possibly can copy the URL utilizing c adopted by its index.

One function that I discover particularly helpful is the command to open a number of outcomes without delay. For instance, kind the next in ddgr’s immediate to open the first, third, 4th, and fifth outcomes:

        o 1 3-5

Every outcome will open in its personal browser tab, and this course of will be quicker than utilizing the mouse to open particular person outcomes from an online web page.

ddgr additionally helps a couple of helpful command-line choices to range its habits.

ddgr’s command-line options including --num, --time, and --site.

To vary the default variety of outcomes per web page, use -n:

        ddgr -n 5 bottletail squid

You should use -t to specify a time restrict or –site to go looking a particular website. If you wish to write a script involving search outcomes, the –json possibility will come in useful: it returns ends in JSON format, good for additional processing:

JSON-formatted search results from ddgr, an array of objects each containing an abstract, title, and url.

Probably my favourite contact, the –ducky possibility opens your first lead to a browser routinely. It’s a play on phrases on the “I’m feeling lucky” feature that Google’s dwelling web page has included for the reason that starting.

        ddgr --ducky a cute squid
    

When you take pleasure in working within the terminal, be taught how to browse the web with Lynx or how to listen to Spotify in a terminal.

Source link

This Linux Tool Lets You Search DuckDuckGo in the Terminal

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top