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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for wikipedia_cli-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 897dea4facc45ecb0742b3e0e98643a6b28b1fed569b2fe1abe93f5506e6ec4e |
|
MD5 | d7e75d76c5a79c40fb56ffd1b577b42c |
|
BLAKE2b-256 | 42ff9a61132213f1a3ce25bcdad3a145b87f7c3d3c6d92ca8ea17a0216440a47 |