wp
A super simple command line wikipedia client
$ wp --help
Usage of wp: wp [options] search terms ...
-1 automatically choose the 1st search result, overrides -n
-full
print full text to std out
-l only show the link of the first result, implies -1
-n int
automatically choose the nth search result
-open
open the browser with the link
-pdf
open a pdf version, overrides -open
-wrap int
wrap printed content close to this value (default 72)
$ wp mike the durable
01) Michael Malloy
02) Irish Americans in New York City
03) Mike Webster
04) Mike Scioscia
05) Mike McCallum
06) The Boys (2019 TV series)
07) Mike Brown (basketball, born 1963)
08) Mark Allen Baker
09) Wilt Chamberlain
10) Karl Ruprect Kroenen
select an article (0 exits): 1
Michael Malloy (1873 – February 22, 1933), later known as either Mike the
Durable or Iron Mike, was an Irish man who lived in New York City during
the 1920s and 1930s. A former firefighter, he is most famous for surviving
a number of murder attempts on his life by five acquaintances, who were
attempting to commit homicide and life insurance fraud.
https://en.wikipedia.org/wiki/Michael_Malloy