Socket
Socket
Sign inDemoInstall

zamboni

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    zamboni

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


Maintainers
1

Readme

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!

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc