360 Secure SkillHub
360 安全技能中心

Premier League Scores

运行 Python 脚本调用 ESPN 公开接口,输出英超当轮比赛比分、进球者及分钟、点球与乌龙标记、黄红牌和美国转播频道;仅覆盖英超,使用 Python 3 标准库,需联网运行。

分类:生活
stigg86
stigg86
热度 31.62
最近更新 2026-05-11 17:37:03

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add stigg86/pl-scores
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
pl-scores
description
Get live Premier League football scores, goal scorers, bookings, and broadcast channels via ESPN API. Use when user asks about Premier League match scores, results, who scored, bookings, or TV channels. Only covers PL (English top flight).

Premier League Scores

Fetches live and recent Premier League match data from ESPN's API — includes scores, goal scorers with minutes, yellow/red cards, and broadcast TV channel.

What It Shows

  • Match scores (live and full-time)
  • Goal scorers with exact minute timestamps
  • Penalty and own-goal markers
  • Yellow and red card bookings
  • Broadcast TV channel (US coverage)
  • Recent match results

Usage

Get all current matchday scores

Run the script directly:

python3 skills/pl-scores/pl_scores.py

Example Output

Premier League — 3 match(es)

Newcastle 1 - 2 Sunderland
  [FT]  📺 USA Net
  ⚽ 10' — A. Gordon (Newcastle)
  ⚽ 57' — C. Talbi (Sunderland)
  ⚽ 90' — B. Brobbey (Sunderland)
  🟨 44' — T. Hume (Sunderland)
  ...

Spurs 0 - 3 Nottm Forest
  [FT]  📺 USA Net
  ⚽ 45' — Igor Jesus (Nottm Forest)
  ⚽ 62' — M. Gibbs-White (Nottm Forest)
  ⚽ 87' — T. Awoniyi (Nottm Forest)

Requirements

  • Python 3 (standard library only — no extra packages)
  • Internet connection (fetches from ESPN API)

Data Source

ESPN API: https://site.api.espn.com/apis/site/v2/sports/soccer/eng.1/scoreboard

Limitations

  • Broadcast channel reflects US coverage (NBCSN, USA Net, etc.), not UK
  • Only covers Premier League (English top flight)
  • Data refresh rate depends on ESPN's update frequency
  • No half-time scores or detailed match stats beyond scorers and bookings

Future Additions

Could extend to:

  • Championship / lower leagues
  • Expected goals (xG)
  • Lineups when available
  • Head-to-head records
  • Upcoming fixtures