Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Hockey Scraper 🏒

A comprehensive Python package for scraping NHL hockey data with built-in analytics capabilities.

Features

  • Complete Game Data: Scrape play-by-play, shifts, rosters, and team statistics
  • Advanced Analytics: Built-in functions for Corsi, Fenwick, TOI analysis, and more
  • Multiple Data Sources: Support for NHL API and HTML sources
  • Flexible Output: Export to pandas, polars, JSON, or CSV formats
  • Async Support: Fast concurrent data collection
  • Easy to Use: Simple API with powerful customization options

Installation

pip install hockey-scraper

Quick Start

import hockey_scraper as hs

# Scrape team data
teams = hs.scrape_teams()

# Get game data with shifts
df, shifts = await hs.scrape_game_(2024020920, include_shifts=True)

# Build analytics matrix
matrix_df = hs.seconds_matrix(df, shifts)
strengths_df = hs.strengths_by_second(matrix_df)

# Get TOI analysis
toi_stats = hs.toi_by_strength_all(matrix_df, strengths_df)

License

MIT License - see LICENSE file for details.

LICENSE

MIT License

Copyright (c) 2024 Max Tixador

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Made with ❤️ for hockey analytics

Metadata

Release files for hockey-scraper-by-max 0.0.1.dev89

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hockey-scraper-by-max 0.0.1.dev89
File Size Uploaded Provenance
hockey_scraper_by_max-0.0.1.dev89.tar.gz 16.3 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hockey-scraper-by-max 0.0.1.dev89
File Interpreter ABI Platform
hockey_scraper_by_max-0.0.1.dev89-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 MB

Release files / hockey_scraper_by_max-0.0.1.dev89.tar.gz

Download URL hockey_scraper_by_max-0.0.1.dev89.tar.gz
Size 16.3 MB
Tags Source
SHA-256 checksum
How to use checksums
3f8b7695b7a8a7553e66a2ff2f0414b16fcb7769d12708f9e0b3f2eb09bb3a73
BLAKE2b-256 checksum
How to use checksums
8629e54e5a0fd556d60a88011723036ec68f4e5b4d550b841abd22ba0fdd8f5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / hockey_scraper_by_max-0.0.1.dev89-py3-none-any.whl

Download URL hockey_scraper_by_max-0.0.1.dev89-py3-none-any.whl
Size 51.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41f238101299f20d14d3b865d549e3f85072eb70e46b47ca39180b440867a6d0
BLAKE2b-256 checksum
How to use checksums
f1ab19ed87769dd012979a202acbdad724928ee6fe2332eebd9a6839cc42ce13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Security for hockey-scraper-by-max 0.0.1.dev89

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page