Metadata-Version: 2.4
Name: hockey-scraper-by-max
Version: 0.0.1.dev89
Summary: A comprehensive Python package for scraping hockey data
Author-email: Max Tixador <maxtixador@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/maxtixador/hockey_scraper
Project-URL: Documentation, https://hockey-scraper.readthedocs.io
Project-URL: Repository, https://github.com/maxtixador/hockey_scraper.git
Project-URL: Issues, https://github.com/maxtixador/hockey_scraper/issues
Keywords: nhl,hockey,sports,data,api,espn,scraping,analytics
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas>=2.0.0
Requires-Dist: numpy>=1.20.0
Requires-Dist: polars>=1.20.0
Requires-Dist: requests>=2.25.0
Requires-Dist: aiohttp>=3.11.0
Requires-Dist: lxml>=4.9.0
Requires-Dist: beautifulsoup4>=4.9.0
Requires-Dist: selectolax>=0.3.0
Requires-Dist: playwright>=1.40.0
Requires-Dist: selenium>=4.15.0
Requires-Dist: webdriver-manager>=4.0.0
Requires-Dist: ftfy>=6.0.0
Requires-Dist: tqdm>=4.60.0
Requires-Dist: nest-asyncio>=1.5.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.25.0; extra == "dev"
Requires-Dist: mypy>=1.0; extra == "dev"
Requires-Dist: types-requests>=2.31; extra == "dev"
Requires-Dist: isort>=5.12; extra == "dev"
Requires-Dist: pandas-stubs; extra == "dev"
Requires-Dist: lxml-stubs; extra == "dev"
Requires-Dist: types-beautifulsoup4; extra == "dev"
Provides-Extra: viz
Requires-Dist: matplotlib>=3.5.0; extra == "viz"
Requires-Dist: seaborn>=0.11.0; extra == "viz"
Provides-Extra: notebook
Requires-Dist: jupyter>=1.0.0; extra == "notebook"
Requires-Dist: jupyterlab>=4.0.0; extra == "notebook"
Requires-Dist: ipykernel>=6.0.0; extra == "notebook"
Provides-Extra: dashboard
Requires-Dist: streamlit>=1.28.0; extra == "dashboard"
Provides-Extra: docs
Requires-Dist: mkdocs>=1.5.0; extra == "docs"
Requires-Dist: mkdocs-material>=9.0.0; extra == "docs"
Requires-Dist: mkdocstrings>=0.24.0; extra == "docs"
Requires-Dist: mkdocstrings-python>=1.7.0; extra == "docs"
Requires-Dist: mkdocs-gen-files>=0.5.0; extra == "docs"
Requires-Dist: mkdocs-literate-nav>=0.6.0; extra == "docs"
Requires-Dist: mkdocs-section-index>=0.3.0; extra == "docs"
Dynamic: license-file

<!-- README.md -->
# 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

```bash
pip install hockey-scraper
```

## Quick Start

```python
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**
