- Surfraw
Infobox_Software
name = Surfraw
caption = Ratpoison with a number of applications open
developer = Julian Assange
latest_release_version = 2.2.3
latest_release_date = September 2008
operating_system =Unix-like
genre = Internet
license = GPL v. 2
website = http://surfraw.alioth.debian.org/|Surfraw (Shell Users' Revolutionary Front Against the WWW) is a free
POSIX -compliant (ie. meant forLinux ,FreeBSD etc.) command-line shell program for interfacing with a number of web-basedsearch engine s. It is licensed under theGNU General Public License and written in theBourne shell language.It uses what it calls "elvi" (a tribute to
Elvis ); elvi are interface widgets for specific engines and databases such asGoogle ,AltaVista ,Wikipedia , Dejanews,Freshmeat , research index,Slashdot , ArXiv, and a number of others. It allows options for configuration of using a shell browser (lynx,w3m ) or a graphical browser (firefox, mozilla, konqueror) "for meatminds".According to its creator Julian Assange: "Surfraw provides a fast unix command line interface to a variety of popular WWW search engines and other artifacts of power. It reclaims google, altavista, dejanews, freshmeat, research index, slashdot, and many others from the false-prophet, pox-infested heathen lands of html forms, placing these wonders where they belong; deep in unix heartland, as god-loving extensions to the shell."
Commands
To see the list of elvi, one can issue the command
surfraw -elvi
(or the shortersr -elvi
, assr
andsurfraw
are aliased to mean the same thing); to search using an elvi, use: sr elvi-name [options] searchtermsFor example, to search Google for information on "Debian ports", using the "
I'm feeling lucky " option: sr google -l Debian portsOr, one could search
Wikipedia for the "surfraw" article like this: sr wikipedia surfrawSurfraw's commands can be shortened even further to require only the name of the elvi (ie.
wikipedia surfraw
) without thesr
orsurfraw
prefixes; it does this by modifying the current shell's (e.g.,bash 's) startup files with the providedsurfraw-update-path
command.External links
* [http://surfraw.sourceforge.net Surfraw homepage] at Sourceforge
* [http://packages.debian.org/stable/web/surfraw Package page] atDebian
* [http://surfraw.alioth.debian.org/ New project website] atDebian projects
Wikimedia Foundation. 2010.