Skip to main content

Minimalist Wikipedia CLI client for terminal dwellers.

Project description

WiCLIpedia

License: GPL-3.0-or-later Version Supported Versions Code Style: Black

This is a minimalist command line interface (CLI) program to fetch and display data from Wikipedia.

In an era where Artificial Intelligence answers everything and large language models shape our knowledge, this program is a small tribute to Wikipedia, the silent, human-curated backbone that feeds those very models. Never forget the source.

Features

  • Fetches and displays article summaries and table of contents
  • Navigates article sections interactively
  • Handles redirects and disambiguation pages automatically
  • Supports multiple languages (tested mainly English and Italian)

Installation

pip install wiclipedia

Usage

wicli "Blade Runner"

If no page title is provided, the program will prompt you to enter one interactively.

You will be interactively prompted to navigate through the article summary sections.
To navigate, use the section numbers shown in the table of contents.

If the query matches a disambiguation page, you will be prompted to select the intended article from a list of options.

By default, it fetches the English Wikipedia.
To specify a different language, use the -l or --lang option:

wicli "La classe operaia va in paradiso" --lang it

Available commands at any prompt:

  • :b — Go back to the start prompt
  • :q — Exit the program

API Respect & Fair Use Disclaimer

WiCLIpedia interfaces directly with the official Wikipedia PHP/MediaWiki APIs without using any third-party scraping libraries. Please use this program responsibly. If you need to perform massive automated data extraction, use official database dumps instead of hammering the live API.

More info on MediaWiki API and usage guidelines:

License

This program is licensed under the GNU General Public License v3.0 or later (GPL-3.0).
See the LICENSE file for details.

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

wiclipedia-0.1.0b2.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

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

wiclipedia-0.1.0b2-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file wiclipedia-0.1.0b2.tar.gz.

File metadata

  • Download URL: wiclipedia-0.1.0b2.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for wiclipedia-0.1.0b2.tar.gz
Algorithm Hash digest
SHA256 9bea041f5604f81d51da6df95974fdd978169f19e5d36dfd49e06c12628a2661
MD5 bba1799354ac38ef569d6e832af80e76
BLAKE2b-256 626daf9bd1a73225da784f94520931adc4eb3ac0fa80fce4d9f2f2a03878a99d

See more details on using hashes here.

File details

Details for the file wiclipedia-0.1.0b2-py3-none-any.whl.

File metadata

  • Download URL: wiclipedia-0.1.0b2-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for wiclipedia-0.1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 ece8e23b29c74c596decc498a191cb2ea81324038956de75f59da8e89d880d84
MD5 f495dc60641e119faf84c767d812b78c
BLAKE2b-256 72d0bf40c1dc811fee3ff60e218a55050a6c00efa2a6c9e03af31e94796fc4e7

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