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]
- Python3
- beautifulsoup4
python3 -m pip install beautifulsoup4 flit_core
git clone https://github.com/yashsinghcodes/wik.git
cd wik
python3 -m pip install .python3 -m pip install wikpython -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.
python -m pip install wikor
pip install wikUsing 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
$ wik -i LinuxWIK 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
You can contribute by opening an issue or making a pull request. If you have ideas or feedback, you can contact me.
