Giter Club home page Giter Club logo

owensharpe / premier-league-match-winner-predictor Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 8 KB

**Credit to Dataquest** This project provides a Python script for scraping football data from FBRef using BeautifulSoup and Pandas. The scraped data is intended for predicting English Premier League (EPL) matches. The project is currently halted do to FBRef web-scraping bots.

Home Page: https://fbref.com/en/

Jupyter Notebook 100.00%
data-scraping football-analytics machine-learning prediction-model

premier-league-match-winner-predictor's Introduction

FBRef Football Data Scraper and EPL Match Prediction

Introduction

This repository contains a Python script designed to scrape football data from FBRef using BeautifulSoup and Pandas. The scraped data is intended to be used for predicting English Premier League (EPL) matches. Please note that accessing websites programmatically, especially ones with protective measures like anti-bot mechanisms, may violate their terms of service. Ensure compliance with FBRef's policies before using this code.

Prerequisites

To run the code, make sure you have the following dependencies installed:

Python (version 3.6 or higher) BeautifulSoup4 Pandas

You can install these packages using the following command: pip install beautifulsoup4 pandas

Usage

Run the Python script:

prem_scraping.py This script is designed to scrape FBRef football data. However, be cautious about the legality of web scraping and ensure that you comply with FBRef's terms of service.

Data

The scraped data will be stored in a CSV file named prem_matches.csv. This file will contain various football statistics that can be used for EPL match predictions.

EPL Match Prediction

The predict_matches.py script utilizes the scraped data to predict English Premier League matches. Before running this script, ensure that you have the required libraries installed: pip install scikit-learn

Run the prediction script:

python predict_prem_winners.py

This script uses a machine learning model to predict match outcomes based on the scraped FBRef data. Adjust the model and parameters as needed for your specific requirements.

Disclaimer

Important: Web scraping may violate the terms of service of the website being scraped. Use this code responsibly and ensure compliance with FBRef's policies. The author of this code is not responsible for any misuse or violation of terms of service.

Contributing

Feel free to contribute by forking the repository and submitting a pull request. Bug reports, feature requests, and suggestions are also welcome in the "Issues" section.

premier-league-match-winner-predictor's People

Contributors

owensharpe avatar

Stargazers

puy avatar

Watchers

 avatar

premier-league-match-winner-predictor's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.