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
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
Metadata Files
README.md
⚽ English-Premier-League-Data-API
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!
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()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) interceptionsandHeaded clearancesare not working forget_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
- Repositories: 1
- Profile: https://github.com/zhouyuyang-joey
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
- Homepage: https://github.com/zhouyuyang-joey/English-Premier-League-Data-API
- Documentation: https://github.com/zhouyuyang-joey/English-Premier-League-Data-API/blob/main/README.md
- License: MIT License
-
Latest release: 0.2.3
published about 1 year ago