https://github.com/zhouyuyang-joey/english-premier-league-data-api

An unofficial API handler to footballapi.pulselive.com. Permitted for study purposes only.

https://github.com/zhouyuyang-joey/english-premier-league-data-api

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.9%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

An unofficial API handler to footballapi.pulselive.com. Permitted for study purposes only.

Basic Info
  • Host: GitHub
  • Owner: zhouyuyang-joey
  • License: mit
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 465 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

⚽ English-Premier-League-Data-API

PyPI version Open In Colab License: MIT

Name: Yuyang Zhou

Student Number: 24005480

EPL-Data is an unofficial lightweight Python API client for www.premierleague.com, providing quick access to data on Premier League players and clubs. It is ideal for data analysis and visualization.

Note: This project is for personal interest and learning only. Commercial use is strictly not permitted.

Features

  • ✅ Super user-friendly (hopefully)
  • ✅ Player and club data access
  • ✅ Supports both JSON and pandas DataFrame output formats
  • ✅ Live Data

What's New with the latest version

  • Improved documentation and usage examples
  • Self-explanatory naming
  • More robust error handling and clearer API responses
  • Expanded notebook example with step-by-step usage and visualization

Gradio

I quickly built a Gradio app for Premier League data visualization with limited functionality with the help of LLM. You can run it in Colab easily!

Open In Colab

Installation

The easiest way to install the latest version is: pip install eplda

Quick Start Guide

Get the season ID for a specific season: ```python from eplda import EPLAPI

epl = EPLAPI() seasonid = epl.getseason_id("2024/25") ```

Get the top scorer's list and convert it to a pandas DataFrame: python df_goals = epl.get_player_rankings("goals", season_id, output="df")

Search for a player ID by name and get player information: python player_id = epl.get_player_id("Erling Haaland", season_id) player_info = epl.get_player_details(player_id, season_id)

Example Notebook

A comprehensive demonstration is available in examples.ipynb, including:

  • Brief explanation of all methods
  • Club and player data queries
  • Data visualization

Known Issues

  • For some reason, some players cannot be found by search_player_by_name() or get_player_list(). (The temporary solution is to read the player's ID in the URL of the official website, e.g. Bukayo Saka's ID is 49481)
  • interceptions and Headed clearances are not working for get_club_rankings() (Although it seems to be a typo, I still cannot get the stats correctly after trying to correct it)

License & Terms of Use

API Client

The eplda is open source with an MIT License.

T&C

www.premierleague.com has a Terms and Conditions regarding the INTELLECTUAL PROPERTY RIGHTS.

Please note that this project has been created for research purposes only and should not be misused in any way with this project or the data obtained from this it.

Acknowledgement

This project is based on Erick Ghuron's premier-league-data.

Owner

  • Name: ZhouyuyangJoey
  • Login: zhouyuyang-joey
  • Kind: user
  • Location: London

Msc student in Data Science and AI for Creative Industries at UAL Creative Computing Institute

GitHub Events

Total
  • Release event: 1
  • Watch event: 1
  • Delete event: 1
  • Push event: 20
  • Public event: 1
  • Pull request event: 1
  • Create event: 3
Last Year
  • Release event: 1
  • Watch event: 1
  • Delete event: 1
  • Push event: 20
  • Public event: 1
  • Pull request event: 1
  • Create event: 3

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 293 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 4
  • Total maintainers: 1
pypi.org: eplda

An unofficial lightweight Python client library for Premier League Data API

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 293 Last month
Rankings
Dependent packages count: 9.3%
Average: 31.0%
Dependent repos count: 52.6%
Maintainers (1)
Last synced: 11 months ago