Средство просмотра Википедии для tty

Я задаюсь вопросом, существует ли какая-либо команда для выборки "введения" (и возможно полный текст статьи) статьи в Википедии о терминале.

Я нашел эту статью и большое перенаправление статьи к нему, но к сожалению при выполнении этого в консоли это дает:

$ dig +short txt fooba.wp.dg.cx
$

Это выходит с кодом 0 так никакая ошибка, но это ничего не показывает также.

Есть ли любые команды запроса Википедии для Linux. Я использую рысь для просмотра Интернета, но иногда Вы просто хотите выбрать введение быстро и сделать некоторую обработку на нем.

2
задан 28 January 2019 в 23:37

2 ответа

Ну, оглядывание:

$ apt search wikipedia              
Sorting... Done
Full Text Search... Done
libwww-wikipedia-perl/trusty 2.00-1 all
  perl module that provides an automated interface to Wikipedia

wikipedia2text/trusty,now 0.11-3 all [installed]
  displays Wikipedia articles on the command line

wikipediafs/trusty 0.4-5 all
  View and edit Wikipedia articles as if they were real files

Рассмотрение страница справочника wikepedia2text :

-s        Display only the summary of the Wikipedia article.

-S        Display the full content of the  Wikipedia  article  and  not
          only the summary.

Проверение его:

$ wikipedia2text -s Linux
Changes must be reviewed before being displayed on this page.show/hide details
This is the latest accepted revision, reviewed on 17 September 2015.
Jump to: navigation, search
This article is about the operating system. For the kernel (also often referred
to as just "Linux"), used in all variants of the Linux operating system, see
Linux kernel. For other uses, see Linux (disambiguation).

                                     Linux
Tux the penguin
Tux the penguin, mascot of Linux^
Developer Community
 Written  Primarily C and assembly
   in
OS family Unix-like
 Working  Current
  state
 Source   Mainly open source, proprietary software also available


$ wikipedia2text Linux   
Page protected with pending changes level 1

Linux

From Wikipedia, the free encyclopedia
Changes must be reviewed before being displayed on this page.show/hide details
This is the latest accepted revision, reviewed on 17 September 2015.
Jump to: navigation, search
This article is about the operating system. For the kernel (also often referred
to as just "Linux"), used in all variants of the Linux operating system, see
Linux kernel. For other uses, see Linux (disambiguation).

                                     Linux
Tux the penguin
Tux the penguin, mascot of Linux^
Developer Community
 Written  Primarily C and assembly
   in
OS family Unix-like
 Working  Current
  state
 Source   Mainly open source, proprietary software also available
  model
 Initial  1991; 24 years ago (1991)
 release
Marketing Personal computers, mobile devices, embedded devices, servers,
 target   mainframes, supercomputers
Available Multilingual
   in
          Alpha, ARC, ARM, AVR32, Blackfin, C6x, ETRAX CRIS, FR-V, H8/300,
Platforms Hexagon, Itanium, M32R, m68k, META, Microblaze, MIPS, MN103, Nios II,
          OpenRISC, PA-RISC, PowerPC, s390, S+core, SuperH, SPARC, TILE64,
          Unicore32, x86, Xtensa
 Kernel   Monolithic (Linux kernel)
  type
Userland  Various
Default
  user    Many
interface
 License  GPLv2^ and other free and open-source licenses, except for the
          "Linux" trademark^[a]

...
4
ответ дан 2 December 2019 в 02:21

Можно загружать статьи из Википедии через их gopherized версии.

Вот пример, тянущий статью на sed:

lynx -dump gopher://gopherpedia.com/0/sed | less -  

Также, если нужно найти статью, перейдите на главную страницу:

lynx gopher://gopherpedia.com/1

Или непосредственно к поиску:

lynx gopher://gopherpedia.com/7/lookup 
0
ответ дан 2 December 2019 в 02:21

Другие вопросы по тегам:

Похожие вопросы: