Wikipedia searching from the command line!
(This probably isn't the best way, but here it goes)
- Download the latest version of cwiki - https://github.com/Demetri0/cwiki/releases.
- Open up your terminal app of choice.
- Navigate to the folder containing the "cwiki.py" file.
- Add the executable permission to the file:
chmod +x cwiki.py
. - Move the file to the usr/local/bin directory so it can be launched as a command:
mv cwiki.py /usr/local/bin
.
Then you can run a wikipedia search by typing cwiki.py
followed by your query (If it's a multi-word query you'll need to use speech marks.).
cwiki.py anime
cwiki.py anime -c 4
orcwiki.py anime --count 4
- set limit of responsecwiki.py anime -l ru
orcwiki.py anime --lang ru
- set languagecwiki.py Anime -e
orcwiki.py Anime --extend
- get full articlecwiki.py Anime --color
- colorize output