Git Product home page Git Product logo

selenium-scrape-mlb-games's Introduction

baseball-game-prediction

Python language using sci-kit learn and Selenium to scrape mlb websites and collection information to get inputs and outputs to potentially predict who will win the next game.

What is the goal of this project?

The machine learning model is designed to essentially predict which team is going to win the game

How will the data be collected?

  • A python script will navigate through https://www.espn.com/mlb/schedule/_/20190320
  • It will iterate through and collect the scores and that will be the outputs we want from the data
  • Each game has information that will essentially be our inputs for the model to train on
  • This is going be a work of web scraping to collect that data and store it into a type of data format (JSON, CSV, etc

What kind of machine learning algorithm is being used?

Linear Regression Model because the inputs have a strong correlation on the output of the game

What are the steps for the project?

Step 1: Using Selenium package to create a webdriver to open the desired web page to scrape

path_to_chromedriver = 'chromedriver.exe'
browser = webdriver.Chrome(executable_path=path_to_chromedriver)
date = datetime.datetime(2019, 3, 20)
date = date.strftime('%Y%m%d')
url = 'https://www.espn.com/mlb/schedule/_/date/{}'.format(date)
browser.get(url)

selenium-scrape-mlb-games's People

Contributors

mike-gallego avatar

Watchers

 avatar

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.