Skip to main content

A Command Line Tool to Search Wikipedia in the terminal.

Project description

wikipit

A Command Line Tool to Search Wikipedia in the terminal.

Installation

$ pip install wikipit

Usage

Syntax: $ wikipit <query> [-flags]

Quotes are required for multi-word queries.

Examples

$ wikipit wikipedia

$ wikipit "Miguel Cabrera"

$ wikipit linux -b

$ wikipit "Miguel Cabrera" -l 8

Flags

Flag Description
--l num Set line wrap length to num
-b Open full Wikipedia article in default browser
--all
-a
Print all sections of the article (the full page). Recommended to pipe into a reader e.g. less
--lang langCode
-e langCode
Specify language; langCode is an HTML ISO language code

Output

The output will be the paragraphs of the wikipedia article before the table of contents. Line length is neatly wrapped based on your terminal's window size, For example:

$ wikipit "Miguel Cabrera"
 José Miguel Cabrera Torres (born April 18, 1983), commonly known as Miguel 
 Cabrera and nicknamed "Miggy", is a Venezuelan professional baseball player. 
 He is the first baseman for the Detroit Tigers of Major League Baseball (MLB).
 Since his debut in 2003 he has been a two-time American League (AL) Most 
 Valuable Player (MVP) award winner, a four-time AL batting champion, and an 
 11-time MLB All-Star. He has played at first and third base for most of his 
 major league career, but primarily played left and right field before 2006. He 
 claimed the 17th MLB Triple Crown in 2012, the first to do so in 45 seasons. 
 In Venezuelan Winter League, Liga de Beisbol Profesional de Venezuela, Cabrera was
 signed by Tigres de Aragua at 16 years old. He batted his first hit in 

Support development

If you liked this, donate to the cause.

paypal

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wikipit-1.0.4.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wikipit-1.0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file wikipit-1.0.4.tar.gz.

File metadata

  • Download URL: wikipit-1.0.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4

File hashes

Hashes for wikipit-1.0.4.tar.gz
Algorithm Hash digest
SHA256 588152b8e4763178549dd6a33a54284a230145628225174c7206e318d3936f70
MD5 f9dab4ab9df9e433b73c17e0716021e0
BLAKE2b-256 ce12c0fbecf7342c365a3b7d04103b40bf54588404aed6d4313b0eb142850a46

See more details on using hashes here.

File details

Details for the file wikipit-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: wikipit-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4

File hashes

Hashes for wikipit-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e631a8cd6f4ce9de5a229d7b732fcf69b174e3b8e1b3ebd7bac77c1438dc926c
MD5 c16aeadde709a73cfa4b250fe781f4cb
BLAKE2b-256 824959f596b0001aa2438fde5b3049e3512dde9a3e644c4479ae4e8d37b14486

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page