Code Monkey home page Code Monkey logo

mlb-recent-statistics's Introduction

MLB Statistics App

An app designed to help fantasy baseball player and general baseball fanatics satisfy their inner data scientist! Complete with some machine learning models to explore.

Installation

  • clone this repository: git clone https://github.com/stanleykywu/MLB-Current-Player-Recent-Statistics-Web-Scraping.git
  • install bs4: pip install bs4
  • install flask: pip install flask

MLB Team Data

Generate CSV Spreadsheets

  • open python environment: python
  • import scripts: from stat_scraper.team_scraper import scrape_hitting, scrape_pitching
  • run scripts: scrape_hitting(list: years of data to scrape) or scrape_pitching(list: years of data to scrape)
  • example: scrape_hitting(list(range(2010, 2020)))

Example Output

Team Hitting Data

Alt text

Team Pitching Data

Alt text

MLB Recent Hitting Statistics Generation

Generate CSV Spreadsheets

  • open python environment: python
  • import scripts: from stat_scraper.mlb_recent_stats import pitcher_data, hitter_data
  • run scripts: pitcher_data() or hitter_data()

Example Output

Recent Player Hitting Data

Alt text

Recent Player Pitching Data

Alt text

mlb-recent-statistics's People

Contributors

stanleykywu avatar

Watchers

James Cloos avatar  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.