Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tom-draper/football

Get football updates through a CLI.
https://github.com/tom-draper/football

football football-api premier-league

Last synced: 3 days ago
JSON representation

Get football updates through a CLI.

Awesome Lists containing this project

README

        

# Football CLI

A Python script that fetches and displays real time football standings on the command line.
The football data is retrieved from the FREE football data API [football-data.org](https://www.football-data.org/).

## Installation

### 1. Create a free football data API account

This script uses [football-data.org](https://www.football-data.org/) to fetch up-to-date football data. When running the script, the X-Auth token from your football-data.org account is required. On the free tier, your API key will allow up to 50 API calls per minute.

### 2. Copy your X-Auth token into the .env file

Paste your X-Auth token into the .env file after X_AUTH_TOKEN=

### 3. Install pip dependencies

The requests, json and datetime packages are required, to install these run:

```bash
pip install -r requirements.txt
```

## Usage

#### Standings

```bash
python3 football.py standings
```

**Flags**

- compact or c - displays the compact version of the standings table.