Sunday, 13 April 2014

DuckDuckGo terminal access



I started using DuckDuckGo as my default search engine recently. I thought it was cool that you can access the terminal access for quicker searches at - https://duckduckgo.com/tty/

Getting Started
  • Basic information given with
 :help
  • To search for "Vancouver"
$  vancouver
[:1] Vancouver
     A city of southwest British Columbia, Canada, on the Strait of Georgia opposite Vancouver Island.

-- Type 'm' for more results and 'r' for related topics.
  • We could either then type 
    • :1  this will open a browser with the link
    • m produces more results
    • r gives related topics
  • Clear the screen 
:clear
  • Show history
 $ :history
+-----------+------------------------+------------------------+
| Query     | Search Performed       | Number of results seen |
+-----------+------------------------+------------------------+
| vancouver | less than a minute ago |                      1 |
| 1         | less than a minute ago |                      1 |
| 2         | less than a minute ago |                      1 |
+-----------+------------------------+------------------------+
  •  Font Size can be changed :
    • :+ increase font
    • :- decrease font
Local Terminal Only Access

  • You can use 'surfraw' to search Duckduckgo in Lynx quickly
  • Install :
 $ apt-get -y install surfraw lynx
  • Note you need to change one default in file /etc/xdg/surfraw/conf from 'yes' to 'no' for text only option to:

defyn   SURFRAW_graphical               no

  • Search with :

$ sr duckduckgo vancouver

  • Which will open it up in Lynx  

No comments:

Post a Comment