Code Monkey home page Code Monkey logo

nwhl-scraper's Introduction

nwhl-scraper

Scrape NWHL Schedule and Play by Play Data in R This is not a finished product and I'd appreciate any feedback/pull requests/suggestion/etc. I can be reached on twitter @jakef1873. If you'd like to scrape nwhl data using python I'd strongly recommend checking out https://github.com/mcbarlowe/nwhl_scraper.

nwhl_scraper.R

Functions:

roster_info - scrape roster information given game id into dataframe

team_info - scrape information on teams within a given game id

game_info - scrape background information on a game given game id

complete_game_scrape - this is the main game scrape function. Given a game id this will return a dataframe of cleaned pbp data.

compile_games - this takes in a vector of game ids and returns a dataframe of all play by play files merged together

game_summary - reads in single game pbp file and returns player totals for the game

compile_player_summary - reads in multiple games and compiles into single dataframe

schedule_scrape - given a season and optional team vector returns all game ids for the field

nwhl_gameids####.csv

These are csv files with the gameids for each game of the season in the year named in file

nwhl_pbp_1718.csv

If unable to run scraper and/or don't want to, this file has all of the 1718 season pbp data loaded.

player_games1718.csv

If unable to run scraper and/or don't want to, this file has all of the 1718 season player game totals.

nwhl-scraper's People

Contributors

jflancer avatar

Watchers

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