Skip to main content

Scrape play-by-play data from NHL games with ease.

Project description

Zamboni: NHL play-by-play scraping
==================================

Overview
--------

Zamboni makes it easy to scrape play-by-play data from National Hockey League
(NHL) games.

Want to scrape all of the plays from a game that's already been played? No
problem.

What about a game that's currently being played? Yeah, it can do that to - it
will 'stream' them for you.

What if you only want to grab plays from games that happened on a specific
date? Or involved a specific team? Sure thing. It's simple to filter games
based on attributes.

Usage
-----

import zamboni

# Grab all of the games in a season
season = zamboni.get_season('20152016')

# Filter the games that have been played
played_games = season.played_games()

# Get the play-by-play data for all of the played games
for game in played_games:
game.get_plays()

# Do something with the play-by-play data...
print(played_games[0].plays)

You can also grab a single game directly if you know the game id.

game = zamboni.get_game('2015020578')

If the game has been played it will grab all of the play-by-play data for the game. If it hasn't been played...

Installation
------------

pip install zamboni

Contribute
----------

Please do!

Project details


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