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 client library based on the Premier League Data API, which provides quick access to data on Premier League players and clubs. Great for data analysis and visualisation.
Please note that this project was made solely for personal interest and learning purposes. Any commercial related use is unacceptable.
Created by Zhou Yuyang
Inspired by Erick Ghuron's premier-league-data
Features
- ✅ Player/Club data
- ✅ Support JSON / pandas DataFrame dual output format
- ✅ Suitable for the current 2024/25 season
Setup Instructions:
pip install requests
pip install pandas
Alternatively, you can run pip install -r requirements.txt in the terminal. You can also complete the setup in the examples.ipynb.
Installation
pip install epl-data
Brief Guide
Gets the corresponding ID of the specified season.
from epldata import EPLAPI
epl = EPLAPI()
season_id = epl.get_season_id("2024/25")
Get the top scorer's list and quickly convert it to a pandas DataFrame.
df_goals = epl.player_rankings("goals", season_id, output="df")
Search for a player ID by name to get information about the player.
player_id = epl.player_id("Erling Haaland", season_id)
player_info = epl.player_info(player_id, season_id)
More specific demonstrations can be found at examples.ipynb
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.1.0.tar.gz.
File metadata
- Download URL: eplda-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f87deb8abbc890bc90f00e96c273a4f43a23d89823600d4b8848cd6b7b6dfe7b
|
|
| MD5 |
667e75197925b4d1437f696935e46b9d
|
|
| BLAKE2b-256 |
982e2784907fb4f7e8bca089e9342743304ecc6ad7bbe38e942ab7176a1b068e
|
File details
Details for the file eplda-0.1.0-py3-none-any.whl.
File metadata
- Download URL: eplda-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 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 |
abca575786f9fe346f5908204d426e976f9f4e14d5e829f914ce564938d435df
|
|
| MD5 |
698c999add9045493676e4d8a7b0b361
|
|
| BLAKE2b-256 |
f140d644f251f02824bbf69f54b74c01b326fde5347a2b48c6cdd83141f2600b
|