Skip to main content

Ducker

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'

Metadata

Release files for ducker 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ducker 2.0.1
File Size Uploaded
ducker-2.0.1.tar.gz 19.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ducker 2.0.1
File Interpreter ABI Platform
ducker-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 46.0 kB

Release files / ducker-2.0.1.tar.gz

Download URL ducker-2.0.1.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
50131934a2cd8aa62af8ff5e114463c7639c1fd8bb1a0c70102a351a64afe40a
BLAKE2b-256 checksum
How to use checksums
0832908f962e19e120f210bc897aee399457a146f0ffc55d7682c5e1b23de8d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ducker-2.0.1-py3-none-any.whl

Download URL ducker-2.0.1-py3-none-any.whl
Size 26.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
159b84ee1103e495bbf89a69922f64f98e73f92ee76acea53a207cd45fc80ac9
BLAKE2b-256 checksum
How to use checksums
0c59ae8e3ea1446a5c9e46c9d3670a70cf1ac61c0e3181f1cff6535cf31b13ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.1.0

2 release files

0.5.3

2 release files

0.5.1

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.3.0

2 release files

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page