This repository contains a Python script (fbref_scraper.py) that extracts football data from the top 5 European leagues, transforms it into a structured format, and saves it as a CSV file named all_leagues_2023_2024.csv. The script is scheduled to run via GitHub Actions every week to ensure that the data is regularly updated with the latest statistics.
To utilize the football data extracted by the script for further analysis and visualization, follow these steps:
After each scheduled run, the updated CSV file (all_leagues_2023_2024.csv) will be available in the root directory of this repository.
You can download the CSV file directly from this repository by navigating to the file link and clicking on the "Download" button.
##Utilize the Data: Once downloaded, you can use the CSV file for various data analysis and visualization tasks using your preferred tools and programming languages (e.g., Python, R, Excel, Tableau).
The fbref_scraper.py Python script utilizes the requests and BeautifulSoup libraries to fetch football statistics from the top 5 European leagues from the FBRef website. It extracts various statistics such as team performance, possession, shooting, passing, and defensive metrics.
The script then merges the extracted data into a single DataFrame, updates column names, and saves the final result as a CSV file (all_leagues_2023_2024.csv). The CSV file contains detailed statistics for each team across different categories, facilitating in-depth analysis of football performance.
The script is scheduled to run automatically via GitHub Actions every week according to the following schedule:
Notes: The CSV file is updated with the latest football statistics after each scheduled run.
If you have any questions, encounter issues, or need further assistance, please don't hesitate to raise an issue ticket in this repository. Our team will be glad to assist you.
- Click on the "Issues" tab in the repository.
- Click on the "New issue" button.
- Provide a descriptive title and detailed description of your question or issue.
- Submit the issue, and our team will respond to it promptly.
Your feedback is valuable to us, and we're committed to providing support to help you effectively utilize the football data extracted by this script.
Disclaimer: This repository and script are provided for educational and analytical purposes only. The accuracy and reliability of the data obtained from external sources may vary. Users are encouraged to verify the data and exercise caution when interpreting the results.
