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.

Installation

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

$ pip install wikipedia-cli

Examples

The language default is English:

$ wikipedia helsinki

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.

https://en.wikipedia.org/wiki/Helsinki

Open URL (y/n)?

The desired language is specified with the -l flag:

$ wikipedia -l fi helsinki

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.

https://fi.wikipedia.org/wiki/Helsinki

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.

Source Distribution

wikipedia-cli-1.0.3.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

wikipedia_cli-1.0.3-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

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