Search with DuckDuckGo from the command line. https://www.freakspot.net/programas/ducker/

Jorge bef32e5eeb release version 0.5.1 vor 8 Jahren
ducker bef32e5eeb release version 0.5.1 vor 8 Jahren
tests 92e72f46bf add lite command-line option vor 8 Jahren
.gitignore 3dc00a164f Initial commit vor 8 Jahren
LICENSE 1b771c2df0 Use original license format instead of notabug.org default vor 8 Jahren
README.rst fd59fe1971 fix readme error vor 8 Jahren
run_ducker.py 9b31405382 Organized the code in functions vor 8 Jahren
setup.cfg 31e31f4c1e Added initial working version vor 8 Jahren
setup.py 3f67d0ab3b add Customization section in readme vor 8 Jahren

README.rst

Ducker
======

What the duck is Ducker?
------------------------

Ducker is a lightweight program that makes internet searchs with DuckDuckGo
from the command line. It can search for images, websites, videos, news and a
lot more.

Usage
-----

Just execute it in your shell with the *search string* as an argument. We call
search string what you want to search for with DuckDuckGo. The following
example searchs for classical music.

.. code-block:: bash

$ duck classical music

There are also options to search for images, videos, audio, etc. To check out
every option execute the program with the `--help` or `-h` arguments.


Installation
------------

You can clone the repository and install Ducker with...

.. code-block:: bash

$ python setup.py install

Or you can simply install it with pip...

.. code-block:: bash

$ 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.

.. code-block:: bash

$ 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.
.. code-block:: bash

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

.. _DuckDuckGo bangs: https://duckduckgo.com/bang
.. _"Free software" article from wikipedia: https://en.wikipedia.org/wiki/Free_software