making-advanced-searches.rst 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ========================
  2. Making advanced searches
  3. ========================
  4. From Ducker you can do pretty much the same that
  5. you can do with DuckDuckGo. It has options to search
  6. for images, videos and websites, to filter results by date,
  7. by website... To check out every available option
  8. execute ``duck -h``.
  9. You can search for images of ducks executing ``duck -i
  10. ducks`` or the long form ``duck --image-search ducks``. It's
  11. very intuitive.
  12. You can also use `DuckDuckGo bangs`_ and other nice
  13. features of DuckDuckGo. Note that you must escape the
  14. exclamation mark (!) in Bash when using bangs. To
  15. go directly to the website of the first search
  16. result you can execute ``ducker ! freakspot.net`` or
  17. ``duck \\freakspot.net``. You can make this types of searches
  18. more comfortable to type using aliases for your shell
  19. (see :ref:`Customization`).
  20. DuckDuckGo makes spell corrections sometimes. If you don't
  21. want your spelling to be corrected by DuckDuckGo, then use the
  22. ``--exact`` flag.
  23. You can even filter results by date with the ``-t`` and ``--time`` options. You
  24. must specify the time limit: a (any time), d (past day), w (past week), m (past
  25. month). For instance, ``ducker -t d cats`` will get you the
  26. results from the past day related to cats.
  27. If you just want to output the search results pages you
  28. can use the ``--np`` and ``--noprompt`` options, which
  29. will perform the search, output it in the terminal and
  30. exit. If you prefer to output it in JSON format, you can
  31. use the ``--json`` parameter.
  32. .. _DuckDuckGo bangs: https://duckduckgo.com/bang