LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

surfraw

Search websites from the command line

TLDR

Search Google
$ surfraw google [search terms]
copy
Search Wikipedia
$ surfraw wikipedia [article]
copy
Search DuckDuckGo
$ surfraw duckduckgo [query]
copy
List available elvi
$ surfraw -elvi
copy
Print URL only
$ surfraw -p google [query]
copy
Search with browser
$ surfraw -browser=[firefox] google [query]
copy
Search YouTube
$ surfraw youtube [video]
copy

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 - Googleduckduckgo - DuckDuckGowikipedia - Wikipediayoutube - YouTubegithub - GitHubamazon - Amazonstack - Stack Overflow

INSTALL

sudo dnf install surfraw
copy
sudo pacman -S surfraw
copy
sudo zypper install surfraw
copy
brew install surfraw
copy
nix profile install nixpkgs#surfraw
copy

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.

SEE ALSO

w3m(1), lynx(1), firefox(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid