surfraw
Search websites from the command line
TLDR
Search Google
SYNOPSIS
surfraw [-elvi] [-p] [-browser=browser] elvi query
DESCRIPTION
surfraw (Shell Users' Revolutionary Front Rage Against the Web) provides a command-line interface for searching websites and web services. It uses a plugin system called "elvi" where each elvi defines the search interface for a specific website such as Google, Wikipedia, DuckDuckGo, or GitHub.
The tool constructs search URLs from command-line arguments and opens them in a configured web browser. Print mode outputs the constructed URL instead of opening a browser, enabling piping to other commands or scripts. Both graphical and text-mode browsers are supported.
Custom elvi can be written as simple shell scripts to add support for any website with a query-based URL pattern. The tool ships with dozens of pre-configured elvi for popular search engines, reference sites, and package repositories.
PARAMETERS
-elvi
List search engines.-p, --print
Print URL only.-browser BROWSER
Use specific browser.-g, --graphical
Use graphical browser.-t, --text
Use text browser.
ELVI (SEARCH ENGINES)
google - Google
duckduckgo - DuckDuckGo
wikipedia - Wikipedia
youtube - YouTube
github - GitHub
amazon - Amazon
stack - Stack Overflow
CAVEATS
Some elvi may be outdated. Sites change their URLs. Browser must be configured.
HISTORY
Surfraw was created by Julian Assange and others in 2000. It embodies Unix philosophy for web searching.
