Skip to main content

Program that lets you search with DuckDuckGo from the command line.

Project description

What the duck is Ducker?

Ducker is a lightweight program that makes internet searches with DuckDuckGo from the command line. It can display the search results in your terminal or directly in DuckDuckGo’s website with your browser.

Usage

Just execute it in your shell with keywords you want to use. The following example searchs for classical music by opening the search results in your default browser.

$ duck classical music

There are options to search specifically for images, videos or websites.

There is also an interactive mode, which lets you make use of more advanced options. Open the interactive mode by calling Ducker without arguments.

When you make a search in the interactive mode, the search results are displayed in your terminal. Each result consist of a number, a title, a URL and an abstract. After making the search you can open the URL of the first result by entering 1. Your default browser will open that URL (opening a new tab if it’s already running) and the program will prompt you again until you decide to exit. You can quit the program entering q.

To check out every option execute the program with the –help or -h arguments.

Installation

You don’t have to install Ducker to run it. Just install Python 3.3 or later (if you don’t have it installed) and execute the run_ducker.py file.

However, you can install Ducker if you want with pip:

$ pip install ducker

Customization

You can always use your favourite command-line options of Ducker using Bash aliases or other utilities available for your shell. Let’s say we want to add an option to search for articles in Wikipedia; we could create a Bash alias for that.

$ alias wikipedia='ducker \!w'

Calling wikipedia in the shell would open the main page of wikipedia, and calling wikipedia free software would open the “Free software” article from wikipedia. Note that we’re using DuckDuckGo bangs and that the exclamation mark (!) must be escaped in Bash.

Similarly, you can create an alias to never use JavaScript when using Ducker.

$ alias duck='ducker --no-javascript'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ducker-2.0.0.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ducker-2.0.0-py2.py3-none-any.whl (22.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ducker-2.0.0.tar.gz.

File metadata

  • Download URL: ducker-2.0.0.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ducker-2.0.0.tar.gz
Algorithm Hash digest
SHA256 2ace9ee809a2e70e92ec1cc8c5af5537b67f0e1a552a44bb22452b108596d78b
MD5 ef753b432e45a6795a076fcabb894352
BLAKE2b-256 f78618d9e3d9be989a330a05903822f4008567653a346164a66fd9e05f138a51

See more details on using hashes here.

File details

Details for the file ducker-2.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ducker-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9a092352b54a8464054c7cb7c9b40afdeee08de5fa8b059d8d213ee3957a81f4
MD5 94e42eb6ebd6da5117c146f7e42814c3
BLAKE2b-256 3f398b6a89a5c46dec441f885ba43bc44de906374f997ffd04f08295ef93b320

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page