Skip to main content

An unofficial lightweight Python client library for Premier League Data API

Project description

⚽ English-Premier-League-Data-API

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 version 0.2.2

  • 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

Installation

The easiest way to install the latest version is:

pip install eplda

Quick Start Guide

Get the season ID for a specific season:

from eplda import EPLAPI

epl = EPLAPI()
season_id = epl.get_season_id("2024/25")

Get the top scorer's list and convert it to a pandas DataFrame:

df_goals = epl.get_player_rankings("goals", season_id, output="df")

Search for a player ID by name and get player information:

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)

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eplda-0.2.2.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eplda-0.2.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file eplda-0.2.2.tar.gz.

File metadata

  • Download URL: eplda-0.2.2.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for eplda-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ad9326be891d1ba4d56c37e65eaa5f75e3824e2111d676d7c31d047604eee120
MD5 ee80161eaed282eb95e0c376857bba0a
BLAKE2b-256 15b39b9f99d90f8e2d0ae447eeef1ea775c08f7b71584100f17f5104344d7ab1

See more details on using hashes here.

File details

Details for the file eplda-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: eplda-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for eplda-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 22274dcfc2cf649d7f993f7e4ac5f849c8808f61ccea8752445da9d2534bc226
MD5 f29b5fe90370230dafc9f396be6729ae
BLAKE2b-256 1932405eb381495f3d71b3d7c46830156a94c32ebc8f11d63633727ef0023451

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page