Football Scraper is a Python-based project that scrapes football match data from the English Championship and retrieves match links from a the ESPN website. It provides an efficient and easy-to-use way to collect football match data for analysis.
I have already found that the data seems to be at odds with other sources, but the data is correct as the website displays it.
- Scrape match links and store them in a file for future use
- Generate a list of dates for the football season
- Retrieve match data using BeautifulSoup and requests
- Clone the repository:
git clone https://github.com/yourusername/football-data-scraper.git- Change into the project directory:
cd football-data-scraper- Install the required dependencies:
pip install -r requirements.txtI have started some analysis in the FootballScraper_App.py file so to demonstrate the way to use the code.
python FootballScraper_App.pyconfig.base_url: Base URL of the website being scrapedconfig.url: URL containing the date placeholderconfig.date_placeholder: Placeholder string for the dateconfig.data_fld: Directory where the match links file is stored
Feel free to submit pull requests or raise issues to help improve the project.
This project is licensed under the MIT License.