Skip to main content

WeakSide Breakout's complete Python package of access to hockey data, primairly including the scraping of National Hockey League schedule, play-by-play, and shifts information.

Project description

WSBA HOCKEY

WSBA128

A Python package for scraping and analyzing hockey data under the motto: Evaluating, analyzing, and understanding the game of hockey through the lens of different analytical methods, including incorporation of analytics.

INSTALLATION AND USAGE

pip install wsba_hockey
import wsba_hockey as wsba

ALL FEATURES

Note: Features yet included are marked with *

SCRAPING

NHL Play-by-Play (of any game frame up to a full season)

Functions:

wsba.nhl_scrape_game(['2024020918'],split_shifts=False,remove=['game-end'])
wsba.nhl_scrape_season('20242025',split_shifts=False,remove=['game-end'],local=True)

NHL Season Information

wsba.nhl_scrape_schedule('20242025')
wsba.nhl_scrape_seasons_info(seasons=['20212022','20222023','20232024','20242025])
wsba.nhl_scrape_standings(arg = '2024-03-20')

NHL Rosters and Player Information

wsba.nhl_scrape_player_info(wsba.nhl_scrape_roster('20242025'))

DATA ANALYTICS

Expected Goals (WeakSide Breakout and MoneyPuck models)*

Goal Impacts and Shot Analysis*

Stat Aggregation*

Shot Plotting (Plots, Heatmaps, etc.)*

REPOSITORY

Past Season Play-by-Play*

Team Information

wsba.repo_load_teaminfo()
wsba.repo_load_rosters(seasons=['20212022','20222023','20232024','20242025])

Schedule

wsba.repo_load_schedule(seasons=['20212022','20222023','20232024','20242025])

ACKNOWLEDGEMENTS AND CREDITS

Huge thanks to the following:

Harry Shomer - Creator of the hockey_scraper package, which contains select utils functions utilized in this package and otherwise inspires the creation of this package.

Dan Morse - Creator of the hockeyR package; another important inspiration and model for developing an NHL scraper.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wsba_hockey-0.1.2.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wsba_hockey-0.1.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file wsba_hockey-0.1.2.tar.gz.

File metadata

  • Download URL: wsba_hockey-0.1.2.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for wsba_hockey-0.1.2.tar.gz
Algorithm Hash digest
SHA256 eb5d85de79581ff14f6990e49006f1f7eb5ca91357922e7ad7fff83c0468f8b2
MD5 50b1d1ef5f54c91fe63d8433743cfdda
BLAKE2b-256 04d5a1ae93d2e63f4f794100d40c32cfd98da287fed93ad707106154132af816

See more details on using hashes here.

File details

Details for the file wsba_hockey-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: wsba_hockey-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for wsba_hockey-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10e99ddc48f306f9fb8f2ab9bfc9e3575a2198d4cc115d3ce6f8a0d909daeae3
MD5 146bbf6d3b7b3b25ee785eb9176e5f1f
BLAKE2b-256 de7e4bdb496e32c0f453ff3a441d398ae6932ddae325a163262d14e292108f28

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page