WIKIPEDIA2TEXT(1)

πŸ’– WIKIPEDIA2TEXT(1) πŸ’–

okay so bestie, welcome to the General Commands Manual entry for wikipedia2text β€” yes it's a section 1 command, yes it's iconic, let's get into it 🌸


✨ NAME ✨

wikipedia2text β€” literally just displays Wikipedia entries right there on your command line πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

wikipedia2text [-BCnNoOpPsSuU]  [-b prog]  [ {-c  | -i  | -I }  patt]
[-l lang]  [-W base-url]  [-X "browser options"]  Query

wikipedia2text  -o [-b prog]  [-l lang]  Query

wikipedia2text [-h]

wikipedia2text  -v

wikipedia2text  -r

🌈 DESCRIPTION 🌈

This manual page documents briefly the wikipedia2text command. Brief. But make it cute πŸŽ€

So what does it DO? wikipedia2text fetches and renders Wikipedia articles using a text-mode web-browser β€” and rn it recognises elinks, links2, links, lynx and w3m β€” and then it displays the text of the article on STDOUT, or respectively in a pager. No browser window, no 47 tabs, no chaos. Just vibes and text 😌✨


πŸ’… OPTIONS πŸ’…

The program recognizes the following command line options β€” and yes, we're going through ALL of them, no skipping, that's the rule πŸ“‹

  • -b prog β€” Use program prog as the browser. You pick, it obeys 🫢
  • -B β€” Do NOT use the browser that's configured via configuration file or environment. Ignore the settings, bestie, we're going rogue πŸ’€
  • -c patt, -I patt β€” Colorize case-sensitive pattern patt in the output. Uppercase matters here, fr fr 🌸
  • -C, -N β€” Colorize output. Full rainbow moment 🌈
  • -h β€” Show help and a summary of options. When in doubt, -h it out πŸ’…
  • -i patt β€” Colorize case-insensitive pattern patt in the output. Any casing, we don't judge ✨
  • -l lang β€” use Wikipedia in language lang. Peep the Wikipedia Languages entry elsewhere in this document πŸ‘€
  • -n β€” Do not colorize output. Monochrome era πŸ˜”
  • -o β€” Open the Wikipedia page in the browser. Take it outside 🚢
  • -O β€” Do not open the Wikipedia page in the browser. Stay inside, stay cozy 🏠
  • -p β€” Use a pager (set by default). This is the default bestie, it's already on πŸ’–
  • -P β€” Don't use a pager. Straight to STDOUT, no middleman πŸ’…
  • -r β€” Display a random Wikipedia article. Gambling but make it educational 🎲
  • -s β€” Display only the summary of the Wikipedia article. TL;DR mode πŸ‘‘
  • -S β€” Display the full content of the Wikipedia article and not only the summary. Give me EVERYTHING πŸ“š
  • -u β€” Just print the URL of the Wikipedia page and exit. Link drop and dip πŸ”—
  • -U β€” Display the full content of the Wikipedia article and not only print the URL of the page. We're not doing the shortcut version 🚫
  • -v β€” Show version number. Number reveal ✨
  • -W base-url β€” use base-url as base URL for wikipedia (e.g. use a different wiki), querying this URL will happen by appending the search term. Different wiki? Different vibe? Sure πŸŒ€
  • -X browser-options β€” pass through browser-options to browser, e.g. "-width 180".
⚠️ Warning: must be in quotes if multiple options should be passed; browser specific, not checked. So like, nobody's gonna catch you if it's wrong, but also nobody's gonna catch you if it's wrong 😭

🌸 ENVIRONMENT 🌸

The following environment variables are recognized β€” set them and they become the default behavior, lowkey powerful:

  • ABROWSER β€” Browser to use as default instead of to found or configured web browser. Your browser, your rules πŸ¦‹
  • IGNCASE β€” Default value for case-sensitivity of colorizing the output. Can be set to "true" or "false". Those are the only two options, don't get creative πŸ’€
  • LOCAL β€” Default value for language in which Wikipedia should be used. Peep the Wikipedia Languages entry elsewhere in this document πŸ‘€
  • OUTPUTURL β€” Determines, if wikipedia2text should display only the URL of the Wikipedia article by default. Can be set to "true" or "false". Yep, "true" or "false", that's it πŸŽ€
  • PAGER β€” Default value for pager to use. Can also be set to "true", in which case, wikipedia2text tries to figure out the appropriate pager, or "false", which means not to use a pager at all. Three moods: a pager, a mystery pager, or no pager πŸ’…
  • SHORT β€” Determines, if wikipedia2text should display only the summary of the Wikipedia article by default. Can be set to "true" or "false" ✨
  • USEBROWSER β€” Determines, if wikipedia2text should open the Wikipedia page via openurl in the globally set default browser, i.e. Firefox or Konqueror, by default. Can be set to "true" or "false" πŸ”₯

πŸŽ€ FILES πŸŽ€

  • $HOME/.wikipedia2textrc β€” Will be sourced from wikipedia2text on startup. Should contain variable assignments. The same variables as for the environment are recognised. So basically, your lil config bestie that runs the second you start up 🫢

πŸ‘‘ WIKIPEDIA LANGUAGES πŸ‘‘

wikipedia2text currently supports the following Wikipedia languages β€” the whole roster, no cuts, no skips:

  • af β€” Cape Dutch (Afrikaans)
  • als β€” Alemannic
  • ca β€” Catalan
  • cs β€” Czech
  • da β€” Danish
  • de β€” German
  • en β€” English
  • eo β€” Esperanto
  • es β€” Spanish
  • fi β€” Finnish
  • fr β€” French
  • hu β€” Hungarian
  • ia β€” Interlingua
  • is β€” Islandic
  • it β€” Italian
  • la β€” Latin
  • lb β€” Luxembourgian
  • nds β€” Low German
  • nl β€” Dutch
  • nn, no β€” Norwegian (Nynorsk and BokmΓ₯l)
  • pl β€” Polish
  • pt β€” Portuguese
  • rm β€” Rhaeto-Romanic
  • ro β€” Romanian
  • simple β€” Simple English
  • sk β€” Slovak
  • sl β€” Slovenian
  • sv β€” Swedish
  • tr β€” Turkish

πŸ¦‹ SEE ALSO πŸ¦‹

elinks(1), links(1), links2(1), lynx(1), w3m(1) β€” the browser besties that make all this possible πŸ’œ


🌈 AUTHOR 🌈

wikipedia2text was written by Christian Brabandt <cb@256bit.org>. Patches also from Axel Beckert <abe@deuxchevaux.org> πŸ‘‘

This manual page was written by Axel Beckert <abe@deuxchevaux.org> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License (GPL), Version 2 any later version published by the Free Software Foundation. So go forth and remix, legally πŸ“œβœ¨

On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.


πŸ’€ HISTORY πŸ’€

wikipedia2text was first released by Christian Brabandt on in his blog (link to URL http://blog.256bit.org/archives/126-Wikipedia-in-der-Shell.html) with as script named wiki. Some users may find it useful to create an alias with that name for speeding up the typing of a wikipedia2text command if no other command of that name is present. Shorter name, same energy, iconic behavior tbh 🌟


⭐ OTHER INFO ⭐

The current version of wikipedia2text should be available at on Christian Brabandt's website (link to URL http://www.256bit.org/~chrisbra/wiki) . Go get the fresh version bestie πŸ“


and that's the whole page!! πŸ’– we made it to the bottom of the General Commands Manual, and this page signs off as WIKIPEDIA2TEXT(1) β€” that's the manual name and the footer, so consider yourself fully oriented. go read some Wikipedia in your terminal, you absolute main character πŸ‘‘βœ¨