Difference between revisions of "Surfraw"

From ArchWiki
Jump to: navigation, search
m (categorize, improve style)
(Tidy up)
Line 1: Line 1:
 
[[Category:Internet Applications]]
 
[[Category:Internet Applications]]
 
[[Category:Search]]
 
[[Category:Search]]
[http://surfraw.alioth.debian.org/ surfraw] provides a fast unix command line interface to a variety of popular WWW search engines and was created by Julian Assange.
+
[http://surfraw.alioth.debian.org/ surfraw] provides a fast UNIX command line interface to a variety of popular WWW search engines. Surfraw was originally created by Julian Assange.
  
 
==Installation==
 
==Installation==
Line 9: Line 9:
 
==Configuration==
 
==Configuration==
  
Surfraw uses the default browser to open the result. The behaviour can be customized via '''~/.surfraw.conf'''
+
Surfraw uses the default browser to open the result. The behaviour can be customized via {{ic|~/.surfraw.conf}}
  
 
  SURFRAW_graphical_browser=/usr/bin/chromium
 
  SURFRAW_graphical_browser=/usr/bin/chromium
Line 16: Line 16:
  
 
==Usage==
 
==Usage==
Basic searching:
+
Surfraw consists of a collection of shell scripts, called elvi, each of which searches a specific web site.
 +
 
 +
To see the list of elvi type:
 +
surfraw -elvi
 +
 
 +
You can call surfraw in full, or the shortened form:
  
 
  sr duckduckgo Archlinux  
 
  sr duckduckgo Archlinux  
  
There is a myriad of parameters available for e.g. amazon:
+
You can also add surfraw to your $PATH to call the elvi directly.
 +
 
 +
There are over 100 elvi available for searching the web, e.g. from amazon:
  
 
  surfraw amazon -search=books -country=en -q Stanislaw Lem  
 
  surfraw amazon -search=books -country=en -q Stanislaw Lem  
  
Searching the aur:
+
t o searching this wiki or the aur:
  
 
   sr aur yaourt
 
   sr aur yaourt
  
For a full list of web site search scripts see: [http://surfraw.alioth.debian.org/#elvilist List of Eliv]
+
For a full list of web site search scripts see: [http://surfraw.alioth.debian.org/#elvilist List of Elvi]

Revision as of 07:42, 24 June 2013

surfraw provides a fast UNIX command line interface to a variety of popular WWW search engines. Surfraw was originally created by Julian Assange.

Installation

Install surfraw from the official repositories.

Configuration

Surfraw uses the default browser to open the result. The behaviour can be customized via ~/.surfraw.conf

SURFRAW_graphical_browser=/usr/bin/chromium
#SURFRAW_text_browser=/usr/bin/elinks
SURFRAW_graphical=yes

Usage

Surfraw consists of a collection of shell scripts, called elvi, each of which searches a specific web site.

To see the list of elvi type:

surfraw -elvi

You can call surfraw in full, or the shortened form:

sr duckduckgo Archlinux 

You can also add surfraw to your $PATH to call the elvi directly.

There are over 100 elvi available for searching the web, e.g. from amazon:

surfraw amazon -search=books -country=en -q Stanislaw Lem 

t o searching this wiki or the aur:

 sr aur yaourt

For a full list of web site search scripts see: List of Elvi