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 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
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()orget_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eplda-0.2.3.tar.gz.
File metadata
- Download URL: eplda-0.2.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01d6930af2e5f2958f7a65f0f2b0541b89719c471b5fa829409c41842614ed71
|
|
| MD5 |
b0425a345c85d2c449c0aab5c15eba1c
|
|
| BLAKE2b-256 |
451919443f00a99ab1f80724197d19bf2cec60bd223c2473669de69525ce2a59
|
File details
Details for the file eplda-0.2.3-py3-none-any.whl.
File metadata
- Download URL: eplda-0.2.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21c2c6e0c56969429f82cfbcd926fd7e8274dcf7a7e7380ca12bb2d0d700b81a
|
|
| MD5 |
b5047309bb03ed8d7e16114fe3fbc4fb
|
|
| BLAKE2b-256 |
dbd282933f615be9bdd60e3d8e64d7ccdda7dc702aaeb7fff43ab224a7d97a9c
|