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

https://github.com/skullcarvercoder/wc18-cli

An easy command line interface for the 2018 World Cup
https://github.com/skullcarvercoder/wc18-cli

cli click json-parser python python-3-6 python36 requests simple-data-pipe world-cup-2018 worldcup worldcup2018

Last synced: 6 months ago
JSON representation

An easy command line interface for the 2018 World Cup

Awesome Lists containing this project

README

          



WC18 CLI
=====
[![PyPI version](https://badge.fury.io/py/wc18-cli.svg)](https://badge.fury.io/py/wc18-cli)

An easy command line interface for the 2018 World Cup

![](https://i.imgur.com/ylQ9kM3.gif)

Install
=====

No need to get an API key! , wc18-cli uses a json file from [lsv fifa-worldcup-2018](https://github.com/lsv/fifa-worldcup-2018) that is updated frecuently

### Using `pip`

wc18-cli is only supported with python 3.6 due to the use of f-strings be aware before pip installing

```bash
$ pip install wc18-cli
```

### Build from source

```bash
$ git clone https://github.com/SkullCarverCoder/wc18-cli.git
$ cd wc18-cli
$ python setup.py install
```
Usage
=====

### Get info of an specific Country and it's soonest match

```bash
$ wc18 --country=germany # germany is the name of the team desired to see stats
```

### Get info of an specific Country plus all the matches

```bash
$ wc18 --country=Argentina --allmatches=True # Argentina is the name of the team desired to see stats
```



### Get info table of a group

```bash
$ wc18 --group=d # groups letter must be in lower case
```



### Get bracket of knockout matches!

```bash
$ wc18 --bracket=True
```



### Help

```bash
$ wc18 --help
```

Todo
====
- [x] Add Group statistics
- [ ] Enable cache
- [ ] Add test cases
- [x] Add knockoff matches logic
- [ ] Add watch for live score scraping from twitter

Feel free to contact me to my email for ideas and to fork this Repo!

Licence
====
Open sourced under [MIT License](LICENSE)