soccer-cli

ClawSkills 作者 J R v1.0.0

A CLI to check soccer scores, game details, and player stats from your terminal.

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install clawskills:clawskills~jrojas537-soccer-cli
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/clawskills%3Aclawskills~jrojas537-soccer-cli/file -o jrojas537-soccer-cli.md
## soccer-cli

A command-line interface to check soccer scores, game details, and player stats using the API-Football service.

### Description

This skill provides a set of commands to quickly retrieve football data directly in your terminal. You can get the latest score for your favorite team, see detailed events from a specific match (like goals and cards), and view the full squad with player ratings and minutes played.

### Installation

1.  **Run the installer:**
    ```bash
    ./install.sh
    ```
    This will compile the Go program and move the `soccer-cli` binary to `~/.local/bin/`.

2.  **Configure API Key:**
    The CLI needs an API key from [API-Football](https://www.api-football.com/).

    Create a configuration file at `~/.config/soccer-cli/config.yaml`:
    ```bash
    mkdir -p ~/.config/soccer-cli
    touch ~/.config/soccer-cli/config.yaml
    ```

    Add your API key to the file in the following format:
    ```yaml
    apikey: YOUR_API_KEY_HERE
    ```

### Usage

-   **Get the latest score for a team:**
    ```bash
    soccer-cli scores "<team-name>"
    ```
    Example: `soccer-cli scores "Real Madrid"`

-   **Get detailed events from a game:**
    (Use the Fixture ID from the `scores` command)
    ```bash
    soccer-cli game <fixture_id>
    ```
    Example: `soccer-cli game 123456`

-   **Get the squad and player stats for a game:**
    ```bash
    soccer-cli squad <fixture_id>
    ```
    Example: `soccer-cli squad 123456`