Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/tom-draper/football
- Owner: tom-draper
- Created: 2019-09-10T19:38:54.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T16:23:31.000Z (about 2 years ago)
- Last Synced: 2024-11-08T10:05:55.560Z (about 2 months ago)
- Topics: football, football-api, premier-league
- Language: Python
- Homepage:
- Size: 184 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
filePaste your X-Auth token into the
.env
file afterX_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
orc
- displays the compact version of the standings table.