EdgingHockeyScraper
https://pypi.python.org/pypi/edginghockeyscraper
Install
pip install edginghockeyscraper
Python Hockey Data Scraper
- Free software: MIT license
- Documentation: https://edginghockeyscraper.readthedocs.io.
Features
-
Python Hockey Data Scraper with following features:
- Caching Requests to quickly fetch data
- Parallel Processing to speed up data fetch from NHL API
-
Get League schedule for year - Usage
schedule = edginghockeyscraper.get_league_schedule(2024) -
Get Game boxscore
boxscore = edginghockeyscraper.get_boxscore(2024020345)
-
Get Game playByPlay
playByPlay = edginghockeyscraper.get_play_by_play(2024020345)
-
Get Season boxscores
boxscoreSeason = edginghockeyscraper.get_boxscore_season(2024)
-
Get Season playByPlay
playByPlaySeason = edginghockeyscraper.get_play_by_play_season(2024)
Filter Season data by PreSeason, Regular, PostSeason gametypes
- e.g.
games = edginghockeyscraper.get_league_schedule(2024, {GameType.REG})boxscoreSeason = edginghockeyscraper.get_boxscore_season(2024, {GameType.REG})
Utilize requests-cache for fast repeated request calls
-
First Call:
%%time edginghockeyscraper.get_boxscore_season(2024, cache= True)CPU times: user 583 ms, sys: 318 ms, total: 901 ms Wall time: 1min 18s -
Second Call:
CPU times: user 374 ms, sys: 141 ms, total: 515 ms Wall time: 1.31 s
A 60x speedup!
Utilize multiprocessing to improve request speed
Benchmark using 2024 Macbook Air Apple M3 16GB
-
No Parallel getBoxscoreSeason:
CPU times: user 15.6 s, sys: 3.55 s, total: 19.1 s Wall time: 8min 49s -
Parallel getBoxscoreSeason:
CPU times: user 583 ms, sys: 318 ms, total: 901 ms Wall time: 1min 18sA ~7x Speedup! (this is an 8-core CPU - you can expect roughly a <# cpu-cores> speedup)
Release files for edginghockeyscraper 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| edginghockeyscraper-0.1.13.tar.gz | 21.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| edginghockeyscraper-0.1.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.2 kB
Release files / edginghockeyscraper-0.1.13.tar.gz
| Download URL | edginghockeyscraper-0.1.13.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f553bb7bf7052d845cc4d05d9e09ca1147197b10b934258c7987788565a571a
|
|
BLAKE2b-256 checksum How to use checksums |
e652e4c8e56d0531a81852c9ba51407e56681b56e7a6366eb48ae3566fcf63f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 30, 2026.
Transparency logRelease files / edginghockeyscraper-0.1.13-py3-none-any.whl
| Download URL | edginghockeyscraper-0.1.13-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ede988e64e745727efaf1ca890927f0baa98672bc788aacb46c971e90cb3ef6b
|
|
BLAKE2b-256 checksum How to use checksums |
c65ddff2d6bfd1e3c2346be19d76f37bfc9d2ebaf4300f3ae5fb03f284dc4a07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 30, 2026.
Transparency log