WIK
WIK is a command-line tool to view Wikipedia pages from your terminal. It also lets you search Wikipedia articles with a single query.
[Installation] [Options] [Examples] [Contribution]
Requirements
- Python3
- beautifulsoup4
Installation
Linux/macOS
From source
python3 -m pip install beautifulsoup4 flit_core
git clone https://github.com/yashsinghcodes/wik.git
cd wik
python3 -m pip install .
PyPI
python3 -m pip install wik
Windows
From source
python -m pip install beautifulsoup4 flit_core
git clone https://github.com/yashsinghcodes/wik.git
cd wik
python -m pip install .
Note: Windows users should add Python to their environment variables.
PyPI
python -m pip install wik
or
pip install wik
Options
Using WIK is simple.
usage: wik [-h] [-s SEARCH] [-i INFO] [-q QUICK] [-l LANG] [-x] [--no-cache]
[--clear-cache]
optional arguments:
-h, --help show this help message and exit
-s SEARCH, --search SEARCH
Search any topic
-i INFO, --info INFO Get info on any topic
-q QUICK, --quick QUICK
Get the summary on any topic
-l LANG, --lang LANG Get info in your native language (default english)
-x, --rand Get random Wikipedia article
--no-cache Disable on-disk cache for this run
--clear-cache Clear cached pages and exit
Example
$ wik -i Linux
Cache
WIK stores pages on disk so repeated queries are instant and can work offline. You can disable caching per run or clear the cache:
wik --no-cache -i Linux
wik --clear-cache
Contribution
You can contribute by opening an issue or making a pull request. If you have ideas or feedback, you can contact me.
Release files for wik 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wik-2.0.1.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wik-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.8 kB
Release files / wik-2.0.1.tar.gz
| Download URL | wik-2.0.1.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a12141d06967a7c21dee62fdd6d6086e4cb3f14ea18fae4aa294e39dfd5f23e2
|
|
BLAKE2b-256 checksum How to use checksums |
ee934a221efc5995f8ee24731a145277de0beb68477f30cdf76954355cd6c62f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / wik-2.0.1-py3-none-any.whl
| Download URL | wik-2.0.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22262b3e32c83d2f563ff9a4fbf7546984c00cf04974ab4b9ee38e0fb9a30cf5
|
|
BLAKE2b-256 checksum How to use checksums |
d4f78da879b09dfd116e4e4dfb5f46c07febf19d48c625401557dad718906e32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|