Skip to main content

A command-line interface for fetching summaries of wikipedia pages.

Project description

A command-line interface for fetching summaries of Wikipedia pages. It is built over Jonathan Goldsmith’s wikipedia library.

Takes a query to Wikipedia as an argument and an optional language flag.


The program is available on pypi, so you can just run:

$ pip install wikipedia-cli


The language default is English:

$ wikipedia helsinki


Helsinki (/hɛlˈsɪŋki/; Finnish pronunciation: [ˈhelsiŋki]; Swedish:
Helsingfors) is the capital and largest city of Finland. It is in the
and worst cities to live in globally, Helsinki placed among the
world's top ten cities.

Open URL (y/n)?

The desired language is specified with the -l flag:

$ wikipedia -l fi helsinki


Helsinki (ruots. Helsingfors) on Suomen pääkaupunki ja Uudenmaan
maakuntakeskus. Se sijaitsee Suomenlahden pohjoisrannalla Uudenmaan
vuonna 1640. Helsingistä tuli Suomen suuriruhtinaskunnan pääkaupunki
vuonna 1812 ja Suomen pääkaupunki maan itsenäistyessä vuonna 1917.

Open URL (y/n)?

Project details

Download files

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

Files for wikipedia-cli, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size wikipedia_cli-1.0.3-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size wikipedia-cli-1.0.3.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page