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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file wikipedia-cli-1.0.3.tar.gz.

File metadata

  • Download URL: wikipedia-cli-1.0.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wikipedia-cli-1.0.3.tar.gz
Algorithm Hash digest
SHA256 97703bfd186f5ec6e8766e0b81dd092c802aab681e138d142fd995c0a93d3596
MD5 17c51b1a785ce01d5c2952a5c96dc416
BLAKE2b-256 c4b8c11d273781720f44af917c0ea05ea5d8868a269e35f4fd991e44ed659d19

See more details on using hashes here.

File details

Details for the file wikipedia_cli-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for wikipedia_cli-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 897dea4facc45ecb0742b3e0e98643a6b28b1fed569b2fe1abe93f5506e6ec4e
MD5 d7e75d76c5a79c40fb56ffd1b577b42c
BLAKE2b-256 42ff9a61132213f1a3ce25bcdad3a145b87f7c3d3c6d92ca8ea17a0216440a47

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