Skip to main content

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

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.1

  • 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

Setup Instructions

Install the required dependencies:

pip install -r requirements.txt

Or install manually:

pip install requests pandas

Installation

Install the package directly:

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.1.tar.gz (15.4 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.1-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eplda-0.2.1.tar.gz
  • Upload date:
  • Size: 15.4 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.1.tar.gz
Algorithm Hash digest
SHA256 583e9323daad9d124ddfd7b6e0cdb3ec8d19e49f628b8225ac378b2050d3d556
MD5 0a56b8e65d77bc1c44923c20cbf429d4
BLAKE2b-256 710a7aba065de94141e274378644d6a08d4ef5fde160516ea49fd4848a55440b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eplda-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 15.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8092340f51beb041903d664e4fc67b21af14b9c03d2600cd1edf01048d34e565
MD5 1422727efc0a3ee6cbe97d0d2f3d983e
BLAKE2b-256 f108c740b017e5c9372bdc1cb1f77c402a014238dbc6e6da040c43bc34f3324c

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