README.rst 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Ducker
  2. ======
  3. What the duck is Ducker?
  4. ------------------------
  5. Ducker is a lightweight program that makes internet searchs with DuckDuckGo
  6. from the command line. It can search for images, websites, videos, news and a
  7. lot more.
  8. Usage
  9. -----
  10. Just execute it in your shell with the *search string* as an argument. We call
  11. search string what you want to search for with DuckDuckGo. The following
  12. example searchs for classical music.
  13. .. code-block:: bash
  14. $ duck classical music
  15. There are also options to search for images, videos, audio, etc. To check out
  16. every option execute the program with the `--help` or `-h` arguments.
  17. Installation
  18. ------------
  19. You can clone the repository and install Ducker with...
  20. .. code-block:: bash
  21. $ python setup.py install
  22. Or you can simply install it with pip...
  23. .. code-block:: bash
  24. $ pip install ducker
  25. Customization
  26. -------------
  27. You can always use your favourite command-line options of Ducker using Bash
  28. aliases or other utilities available for your shell. Let's say we want to
  29. add an option to search for articles in Wikipedia; we could create a Bash
  30. alias for that.
  31. .. code-block:: bash
  32. $ alias wikipedia='ducker \!w'
  33. Calling ``wikipedia`` in the shell would open the main page of wikipedia, and
  34. calling ``wikipedia free software`` would open the `"Free software" article
  35. from wikipedia`_. Note that we're using `DuckDuckGo bangs`_ and that the
  36. exclamation mark (!) must be escaped in Bash.
  37. Similarly, you can create an alias to never use JavaScript when using Ducker.
  38. .. code-block:: bash
  39. $ alias duck='ducker --no-javascript'
  40. .. _DuckDuckGo bangs: https://duckduckgo.com/bang
  41. .. _"Free software" article from wikipedia: https://en.wikipedia.org/wiki/Free_software