Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yashsinghcodes/wik

wik is use to get information about anything on the shell using Wikipedia.
https://github.com/yashsinghcodes/wik

cli information python python3 wikipedia

Last synced: 6 days ago
JSON representation

wik is use to get information about anything on the shell using Wikipedia.

Awesome Lists containing this project

README

        

# WIK
wik is a tool to view wikipedia pages from your terminal.
It also let you search for any wikipedia up to date article on one query from your terminal.

### \[[Installation](#installation)] \[[Options](#options)] \[[Examples](#example)] \[[Contribution](#contribution)]

## Requirements
- Python3
- beautifulsoup4

## Installation

#### Linux

##### From Source
```bash
sudo pip3 install beautifulsoup4 flit_core
git clone https://github.com/yashsinghcodes/wik.git
cd wik
sudo pip3 install .
```

##### PYPI
```bash
sudo pip3 install wik
```

#### Windows

##### From Source

```
pip install beautifulsoup4 flit_core
git clone https://github.com/yashsinghcodes/wik.git
cd wik
pip install .
```
>Note: Windows users should have added python to there environment variable

##### PYPI
```
pip install wik
```

## Options
Using wik is acutally really simple.

```
usage: wik [-h] [-s SEARCH] [-i INFO] [-q QUICK] [-l LANG] [-x]

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
```

## Example

```bash
$ wik -i Linux
```
![carbon (6)](https://user-images.githubusercontent.com/32360914/155836508-63c7424f-b7d6-4871-a170-e2f0fdd6617d.png)

```bash
$ wik -q Linux
```
![carbon (7)](https://user-images.githubusercontent.com/32360914/155836565-281eb678-9605-4131-a6c9-9a6c871bdc77.png)

```
$ wik -i Linux -l br
```
![lang](https://user-images.githubusercontent.com/32360914/155878486-e46c909d-4373-4cae-8ada-3d6df8545a96.png)

## Contribution
You can contribute to the project by opening a issue if you face any or making a pull
requests, if you think you can fix somthing or make improvment on the code. If you have some
ideas related to the project you can [contact me](https://yashwastaken.xyz/contact).